小陆要懂云
小陆要懂云
全部文章
分类
题解(37)
归档
标签
去牛客网
登录
/
注册
小陆要懂云的博客
全部文章
(共37篇)
C++,最短代码,字符串自带与数值的转换函数
#include<iostream> #include<string> using namespace std; int main(){ string str; while(cin>>str){ cout << st...
C++
STL
2021-08-15
134
8471
C++,利用反向迭代器,代码简洁
#include<bits/stdc++.h> using namespace std; int main(){ vector<string> vs; string tmp; while(cin>>tmp) vs.empla...
C++
STL
2021-08-15
25
1653
C++,无序关联容器unordered_multiset
#include <iostream> #include <string> #include<unordered_set> using namespace std; int main() { string s; getline(cin, s); ...
C++
STL
2021-08-14
8
798
C++,学习用Lambda包装isupper库函数来使用STL算法
#include<bits/stdc++.h> using namespace std; int main(){ string str; while(getline(cin,str)){ cout<<count_if(str.begin(), ...
C++
STL
Lambda
2021-08-14
10
802
优雅的C++
#include<iostream> #include<string> using namespace std; int main() { string str; while (getline(cin, str)) { int a = ...
C++
2021-08-14
36
1845
C++,利用STL的反向迭代器和set
#include<bits/stdc++.h> using namespace std; int main(){ string str; cin>>str; unordered_set<char> set; for(auto ite...
C++
STL
2021-08-14
20
1963
C++,利用STL中的copy直接输出
#include<bits/stdc++.h> using namespace std; int main(){ string str; while(cin>>str){ int n; cin>>n; ...
C++
STL
2021-08-14
1
713
C++,利用STL中的bitset
利用sitseb对象的to_string()方法,将题目转化为求由‘0’、‘1’组成的字符串中,最长连续的‘1’的个数 #include<bitset> #include<iostream> using namespace std; int main(){ int n...
C++
STL
2021-08-14
5
616
C++,学习使用STL
看到二进制就要想到bitset #include<bitset> #include<iostream> using namespace std; int main(){ int n; while(cin>>n){ bitset<...
C++
STL
2021-08-14
19
834
C++,学习使用STL
看到二进制就要想到bitset #include<bitset> #include<iostream> using namespace std; int main(){ int n; cin>>n; bitset<32> b(n...
C++
STL
2021-08-14
100
2611
首页
上一页
1
2
3
4
下一页
末页