yww9
yww9
全部文章
分类
归档
标签
去牛客网
登录
/
注册
yww9的博客
全部文章
(共7篇)
题解 | 【模板】序列操作
#include<iostream> #include<algorithm> using namespace std; typedef int Element; bool cmp(Element a,Element b) { return a>b; } clas...
2025-12-20
0
43
题解 | 【模板】栈的操作
#include<iostream> #include<string> #include<cstdlib> using namespace std; class Stack { public: Stack() { base=...
2025-12-20
0
31
题解 | 田忌赛马
#include<iostream> #include<algorithm> using namespace std; int main() { int *a=new int[3]; int *v=new int[3]; for(int i=0;i&l...
2025-12-19
0
32
题解 | BFS
#include<iostream> #include<string> #include<cctype> using namespace std; int main() { string s; size_t n; cin>>s;...
2025-12-19
0
40
题解 | 无限长正整数排列字符串
#include<iostream> #include<string> using namespace std; int main() { int n; cin>>n; string s; for(int i=1;i<=100...
2025-12-19
0
31
题解 | 蛇形矩阵
#include<iostream> using namespace std; int main() { int n; int arr[1001][1001]; cin>>n; int k=0; int i=0,j=0; arr...
2025-12-19
0
35
题解 | 添加逗号
#include<iostream> #include<string> using namespace std; int main() { string s; cin>>s; int len=int(s.size()); int x...
2025-12-17
0
34