STARoy
STARoy
全部文章
分类
归档
标签
去牛客网
登录
/
注册
STARoy的博客
全部文章
(共5篇)
题解 | 完全数计算
///完全数计算 #include<bits/stdc++.h> using namespace std; bool sol(int i){ int sum=0; if(i<6) return false; for(int p=1;p<=sqrt(i);p++){ ...
2025-04-01
0
18
题解 | 字符个数统计
#include<bits/stdc++.h> using namespace std; int main(){ map<char,int>cnt; string s; int ans=0; cin>>s; for(auto e :s){ cnt[e...
2025-04-01
0
16
题解 | 提取不重复的整数
//提取不重复的整数 #include<bits/stdc++.h> using namespace std; int main(){ map<char,bool>ap; map<char,int>p; string s; cin>>s; f...
2025-04-01
0
16
题解 | 截取字符串
///截取字符串 #include<bits/stdc++.h> using namespace std; int main(){ string s; int a; cin>>s>>a; s.erase(a,s.size()); cout<<...
2025-03-31
0
18
题解 | 字符串最后一个单词的长度
///字符串最后一个单词的长度 #include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin>>s); cout<<s.length(); return 0; }
2025-03-31
0
17