算法竞赛入门经典第五章例题5-3 Andy's First Dictionary UVA - 10815
2018-01-07 13:17
417 查看
https://vjudge.net/problem/UVA-10815
#include<iostream> #include<sstream> #include<set> #include<string> using namespace std; #pragma warning(disable:4996) const int maxn = 30; int main() { #ifdef _DEBUG //freopen("in", "rb", stdin); //freopen("out", "wb", stdout); #endif // _DEBUG set<string> all; string s; while (cin >> s) { for (auto &x : s) { if (isalpha(x)) x = tolower(x); else x = ' '; } stringstream ss(s); while (ss >> s) all.insert(s); } for (auto x : all) cout << x << endl; }
相关文章推荐
- 例题 5-3 安迪的第一个字典(Andy's First Dictionary) UVa 10815
- 紫书章5例三 Andy's First Dictionary, UVA 10815(set)
- UVa 10815: Andy's First Dictionary
- 紫书章5例三 Andy's First Dictionary, UVA 10815(set)
- C - Andy's First Dictionary UVA - 10815
- Andy's First Dictionary UVA - 10815
- UVa-10815-Andy's First Dictionary
- uva 10815 Andy's First Dictionary (STL之set)
- 安迪的第一个字典(Andy's First Dictionary, UVa 10815)
- 紫书章5例三 Andy's First Dictionary, UVA 10815(set)
- uva 10815 Andy's First Dictionary
- UVa 10815 - Andy's First Dictionary
- UVA10815-5.3-Andy's First Dictionary(集合set的用法)
- UVA 10815 Andy's First Dictionary(set的应用)
- 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