虚心的存钱罐
虚心的存钱罐
全部文章
分类
题解(58)
归档
标签
去牛客网
登录
/
注册
虚心的存钱罐的博客
全部文章
(共58篇)
题解 | #图片整理#C++ 用set简单且快
#include<string> #include<set> using namespace std; int main() { string str; while(cin>>str) { multiset<char...
2021-07-20
0
336
题解 | #简单密码# C++硬解
#include<iostream> #include<string> using namespace std; int main() { string str; while(cin>>str) { for(auto &am...
2021-07-20
0
605
题解 | #挑7#C++,简单,好理解
#include<bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n) { int count=0; string str; ...
2021-07-16
3
608
题解 | #字符串排序# C++相当简洁的代码,用multimap秒杀
#include<bits/stdc++.h> #include<string.h> using namespace std; int main() { int n; cin>>n; string str; multimap<...
2021-07-15
0
401
题解 | #字符个数统计# C++解法,简单到怀疑
#include<bits/stdc++.h> using namespace std; int main() { string str; map<char,int> m; while(cin>>str) { for...
2021-07-15
0
440
题解 | #提取不重复的整数# C++,耍流氓做法
#include<bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n) { string str=to_string(n); for(...
2021-07-15
0
413
题解 | #合并表记录# C++ map解法,map还不熟练,代码很冗余
#include<iostream> #include<map> #include<set> using namespace std; int main() { map<int,int> m; pair<int,int> p...
2021-07-14
0
464
题解 | #自守数# C++解法,根据定义解就行了
#include<bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n) { int count=0; for(int i=0;i<...
2021-07-14
0
476
题解 | #质数因子# C++解法,为啥这种较难题比我做的简单题还简单很多呢?
#include<bits/stdc++.h> using namespace std; int main() { string tmp; while(cin>>tmp) { if(cin.get()=='\n') { ...
2021-07-12
1
442
题解 | #质数因子# C++解法,帮二楼大佬改进后的代码,3ms通过
#include<bits/stdc++.h> using namespace std; int main() { long m; while(cin>>m) { for(long i=2;i*i<=m;i++) ...
2021-07-12
35
1067
首页
上一页
1
2
3
4
5
6
下一页
末页