UVA 10815 Andy's First Dictionary
来源:互联网 发布:oracle查询去重数据 编辑:程序博客网 时间:2024/05/19 11:49
#include <iostream>#include <cstdio>#include <algorithm>#include <set>#include <string>#include <sstream>using namespace std;int main(){ set<string> dict; string s,t; while(cin>>s) { for(int i=0;i<s.length();i++) { if(isalpha(s[i])) s[i]=tolower(s[i]); else s[i]=' '; } stringstream ss(s); while(ss>>t) dict.insert(t); } for(set<string>::iterator it=dict.begin();it!=dict.end();it++) { cout<<*it<<endl; } return 0;}
2 0
- UVa OJ 10815-Andy's First Dictionary
- uva 10815 Andy's First Dictionary
- UVa 10815 - Andy's First Dictionary
- UVA 10815 - Andy's First Dictionary
- uva-10815 - Andy's First Dictionary
- UVa 10815 - Andy's First Dictionary
- UVA 10815 Andy's First Dictionary
- UVa 10815 - Andy's First Dictionary
- UVA 10815 Andy's First Dictionary
- UVa-10815 - Andy's First Dictionary
- UVA 10815 - Andy's First Dictionary
- uva -- 10815 Andy's First Dictionary
- UVA 10815 Andy's First Dictionary
- uva 10815 Andy's First Dictionary
- UVa 10815 - Andy's First Dictionary
- uva - 10815 - Andy's First Dictionary
- UVA 10815 Andy's First Dictionary
- Uva 10815 - Andy's First Dictionary
- 数据结构实验之图论四:迷宫探索
- TableView 或者collectionView 获取点击的cell 和当前行数的方法
- 8大常用通讯中间件/MQ使用总结
- Java多线程编程之同步器
- MVC下在控制器与试图中获取当前页面的URL与controller、action
- UVA 10815 Andy's First Dictionary
- Oracle集合运算
- sdut oj3340 数据结构实验之二叉树一:树的同构
- 二叉排序树
- zf2框架的php程序,nginx下运行提示404 not found
- 驱动程序实验遇到的问题
- TCP/IP、Http、Socket的区别
- 使Eclipse CDT 支持 c++ 11 的设置
- 程序员的自我修养