爱信等_华耀
爱信等_华耀
全部文章
分类
题解(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
6
662
题解 | #整数与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
613
题解 | #密码截取#
生硬的撕出来 #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
316
题解 | #单词倒排#
#include<bits/stdc++.h> using namespace std; int main(){ string str; while(getline(cin,str)){ vector<string> vec; ...
C++
2022-01-20
0
304
题解 | #字符串合并处理#
#include<bits/stdc++.h> using namespace std; int main(){ string str1,str2; while(cin>>str1>>str2){ string ne...
C++
2022-01-19
0
280
题解 | #字符串加解密#
#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
331
题解 | #字符串排序#
#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
290
题解 | #合唱队#
看了大佬们的题解才写出来的,最长子序列·· #include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ vector<int...
C++
2022-01-19
0
329
题解 | #删除字符串中出现次数最少的字符#
#include<bits/stdc++.h> using namespace std; int main(){ string str; while(cin>>str){ //计数 int counts[26]={...
C++
2022-01-19
0
279
题解 | #汽水瓶#
#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
300
首页
上一页
1
2
3
4
下一页
末页