2017-01-13から1日間の記事一覧
paiza.jp #include <algorithm> #include <iostream> #include <map> #include <string> using namespace std; void Solve(int n) { map<string,int> w, left, center; string word, str, leftWord = "", centerWord = "", rightWord = ""; w.clear(); left.clear(); center.clear(); for (int i=0; i<n; ++i) { cin >> wor…</n;></string,int></string></map></iostream></algorithm>