Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Anagrams WIP
//g++ 5.4.0 #include <iostream> #include <queue> #include <vector> #include <string> #include <algorithm> using namespace std; int main() { priority_queue<char, vector<char>,greater<char>> palabras; long long hash; int pos=0; string entrada, cadena; vector<string> cadenas; while(true){ cin>>entrada; if(entrada.compare("#")==0) break; cadenas.push_back(entrada); } for(auto a: cadenas){ sort(a.begin(), a.end()); cout<<a<<"\n"; } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Volume of Sphere with Powf
Expected types
1568-1644 Solar eclipses, make 1617(8) and 1620(12) Lunar eclipses the same as Chinese records
Segment Tree
CPP - Arrays - Ex.1
abbinsertbool
combine c++ string with dynamically allocated c array of chars through overloaded add operator
Reverese every K node in list
NBiggestNum
ListCPP
Please log in to post a comment.