爱信等_华耀
爱信等_华耀
全部文章
分类
题解(38)
归档
标签
去牛客网
登录
/
注册
爱信等_华耀的博客
全部文章
(共39篇)
题解 | #图片整理#
#include<bits/stdc++.h> using namespace std; int main(){ string str; while(cin>>str){ sort(str.begin(),str.end()); ...
C++
2022-01-20
7
674
题解 | #整数与IP地址间的转换#
尝试用了下bitset,感觉还是做麻烦了 #include<bits/stdc++.h> using namespace std; unsigned long string2int(string str); int string2int_2(string str); int main(...
C++
2022-01-20
1
632
题解 | #密码截取#
生硬的撕出来 #include<bits/stdc++.h> using namespace std; int main(){ string str; cin>>str; int len=str.size(); int max_c...
C++
2022-01-20
0
323
题解 | #单词倒排#
#include<bits/stdc++.h> using namespace std; int main(){ string str; while(getline(cin,str)){ vector<string> vec; ...
C++
2022-01-20
0
321
题解 | #字符串合并处理#
#include<bits/stdc++.h> using namespace std; int main(){ string str1,str2; while(cin>>str1>>str2){ string ne...
C++
2022-01-19
0
291
题解 | #字符串加解密#
#include<bits/stdc++.h> using namespace std; string encode(string str); string decode(string str); int main(){ string str1,str2; w...
C++
2022-01-19
0
339
题解 | #字符串排序#
#include<bits/stdc++.h> using namespace std; int sort_A(vector<char>& vec); bool comp(char a,char b){ if(a-b=='A'-'a'||b-a=='A'-'a...
C++
2022-01-19
0
297
题解 | #合唱队#
看了大佬们的题解才写出来的,最长子序列·· #include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ vector<int...
C++
2022-01-19
0
338
题解 | #删除字符串中出现次数最少的字符#
#include<bits/stdc++.h> using namespace std; int main(){ string str; while(cin>>str){ //计数 int counts[26]={...
C++
2022-01-19
0
281
题解 | #汽水瓶#
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n&&n!=0){ int nums=0; while(n...
C++
2022-01-19
0
306
首页
上一页
1
2
3
4
下一页
末页