![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
集合的使用
Fly_Eason
脚踏实地,破茧成蝶。
展开
-
UVA10815
#include #include //集合头文件#include #include //使用stringstreamusing namespace std; set str;int main(){string s,buf;while(cin>>s){ //电脑上调试得不出答案但是能AC原创 2016-10-26 16:18:00 · 609 阅读 · 0 评论 -
文章标题
`//本题思考了两个小时,这道题很好的利用了映射,容器,同时关键解题思路为将字符全部转化为小写字母在进行排序,然后在放到map中进行统计,include include include include include include using namespace std;map原创 2016-10-26 23:26:57 · 244 阅读 · 0 评论 -
HDU2034
简单算法编写:#include #include #include using namespace std;const int maxn = 100+10;int main(){int n,m;while(scanf("%d%d",&n,&m)&&(n+m!=0)){int a[maxn]={0},b[maxn]={0},count = 0;in原创 2016-10-26 23:29:51 · 281 阅读 · 0 评论 -
UVa156
#include #include //自己体悟 我体悟了两个小时 无力解释#include #include #include #include using namespace std;map cnt;vector words;string repr(string &s){ string ans = s; for (int i=0; i<ans.lengt原创 2016-10-28 23:13:26 · 365 阅读 · 0 评论