爱信等_华耀
爱信等_华耀
全部文章
分类
题解(38)
归档
标签
去牛客网
登录
/
注册
爱信等_华耀的博客
全部文章
(共39篇)
题解 | #字符个数统计#
#include<bits/stdc++.h> using namespace std; int main(){ string str; cin>>str; map<char,int> m; for(int i=0;i...
C++
2022-01-17
1
196
题解 | #提取不重复的整数#
#include<bits/stdc++.h> using namespace std; int main(){ string str; cin>>str; map<char,int> m_map; for(int i=str...
C++
2022-01-17
0
229
题解 | #合并表记录#
#include <iostream> #include<map> struct CmpByKeyLength { bool operator()(const int& k1, const int& k2) { return k1 < k2...
C++
2022-01-17
0
305
题解 | #取近似值#
#include using namespace std; int main(){ float a; cin>>a; if(a-(int)a>=0.5) cout<<(int)a+1; else cout<<(int)a; return 0...
C++
2022-01-17
0
226
题解 | #质数因子#
#include #include<math.h> #include int minZyz(int a); using namespace std; int main() { int n; cin>>n; vector vec; while(n>1){ int tmp...
C++
2022-01-17
0
282
题解 | #质数因子#
感觉复杂都有点高了 #include <iostream> #include<math.h> #include<vector> int minZyz(int a); using namespace std; int main() { int n; ...
C++
2022-01-17
0
386
题解 | #进制转换#
#include #include<math.h> int findIndex(char A[],char c); using namespace std; char A[16] = {'0','1','2','3','4','5','6','7','8','9','A','B','C'...
C++
2022-01-17
0
347
题解 | #字符串分隔#
#include<bits/stdc++.h> using namespace std; int main(){ string str; while(cin>>str){ for(int i=0;i<str.length();i+=8){ str...
C++
2022-01-17
0
350
题解 | #明明的随机数#
"> using namespace std; int main() { int n=0; int a=0; vector<int> vec; while(cin>>n){ if(n>0){ v...
C++
2022-01-17
0
340
首页
上一页
1
2
3
4
下一页
末页