1215 - URI

Run Settings
LanguageC++
Language Version
Run Command
#include <bits/stdc++.h> using namespace std; int main() { string s, oia; set <string> opa; while(getline(cin,s)){ s+='.'; for(int i = 0; i < s.size(); i++){ s[i] = tolower(s[i]); if(s[i] < 'a'|| s[i] > 'z'){ if(oia.size()) opa.insert(oia); oia.clear(); } else oia+=s[i]; } } getchar(); int cont = 0; while(cont < 5000){ for(auto a: opa){ cout << a << "\n"; cont++; } } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines