Run Code
|
API
|
Code Wall
|
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
2015(M2)Mod.
GRAPH DFS & BFS
DP Optimization another kind
error
completed
Median of row wise sorted matrix
PyramidTransitionMatrix_recursive
dia
DoubleListInt
as