_becky
_becky
全部文章
分类
题解(76)
归档
标签
去牛客网
登录
/
注册
_becky的博客
加油~
TA的专栏
76篇文章
0人订阅
华为机考
76篇文章
1138人学习
全部文章
(共75篇)
题解 | #删除字符串中出现次数最少的字符#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { string s; while(cin>>s) { vector<int> c(26,0); ...
C++
2022-03-05
15
1006
题解 | #简单密码#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { string s; unordered_map<char, char> map; map['a'] = map['b'] = map['...
C++
2022-03-05
3
325
题解 | #汽水瓶#
来自专栏
#include<iostream> using namespace std; int main () { int n; while (cin >> n) { int ans = 0; if (n == 0)break;...
C++
2022-03-05
2
272
题解 | #求int型正整数在内存中存储时1的个数#
来自专栏
#include<iostream> using namespace std; int main() { int n,c=0; cin >> n; for(;n;n >>= 1) if(n & 1) ...
C++
2022-03-05
11
354
题解 | #字符串排序#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { int n=0; cin>>n; string str; vector<string> vec; while...
C++
2022-03-05
0
264
题解 | #句子逆序#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { string str, res; while(cin >> str) { str += " " +res; ...
C++
2022-03-05
0
201
题解 | #字符串反转#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); cout << s...
C++
2022-03-05
14
513
题解 | #数字颠倒#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; string s = to_string(n); reverse(s.begin(),s.end(...
C++
2022-03-05
0
155
题解 | #字符个数统计#
来自专栏
#include<iostream> #include<set> using namespace std; int main() { string s; getline(cin, s); set<char>set; for(auto...
C++
2022-03-05
0
280
题解 | #合并表记录#
来自专栏
#include<iostream> #include<map> using namespace std; int main() { int n; map<int,int>m; cin>>n; while(n--) ...
C++
2022-03-05
37
804
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页