银河护胃队
银河护胃队
全部文章
分类
归档
标签
去牛客网
登录
/
注册
银河护胃队的博客
全部文章
(共166篇)
题解 | 简写单词
#include<bits/stdc++.h> using namespace std; string s; int main(){ getline(cin,s); int p=0; transform(s.begin(),s.end(),s.begin(),::tou...
2026-01-21
0
20
题解 | 无限长正整数排列字符串
#include<bits/stdc++.h> using namespace std; string s="12345678910"; string p="11"; int main(){ int n; cin>>n; f...
2026-01-21
0
16
题解 | 凯撒加密
#include<bits/stdc++.h> using namespace std; int main(){ int n; string s; cin>>n; cin>>s; for(int i=0;i<s.size();i++){ s...
2026-01-21
0
14
题解 | BFS
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; transform(s.begin(),s.end(),s.begin(),::toupper);//或者tolow...
2026-01-21
0
18
题解 | 添加逗号
#include<bits/stdc++.h> using namespace std; string n; int main(){ cin>>n; int p=n.size(); while(p>3){ n.insert(p-3,"...
2026-01-21
2
20
题解 | 斗兽棋
#include<bits/stdc++.h> using namespace std; string s1,s2; int main(){ cin>>s1>>s2; if(s1=="elephant"&&s2==&...
2026-01-21
0
19
题解 | 年轻人不讲5的
#include<bits/stdc++.h> using namespace std; string s; int main(){ cin>>s; for(int i=0;i<s.size();i++){ if(s[i]=='5'){ s[i]...
2026-01-21
0
12
题解 | 校门外的树
#include<bits/stdc++.h> using namespace std; const int N=1e4+10; int l,m,p[N]; int main(){ cin>>l>>m; for(int i=1;i<=m;i...
2026-01-20
0
21
题解 | 约瑟夫环
#include<bits/stdc++.h> using namespace std; const int N=110; int a[N]={0};//0代表存活 1代表出队 int n,k,m; int main(){ cin>>n>>k>&...
2026-01-20
0
26
题解 | 记数问题
#include<bits/stdc++.h> using namespace std; int getNum(int i,int x){ int cnt=0; while(i!=0){ if(i%10==x){ cnt++; } i=i/10; } retu...
2026-01-20
0
19
首页
上一页
8
9
10
11
12
13
14
15
16
17
下一页
末页