2016-09-06から1日間の記事一覧
abc023.contest.atcoder.jp #include <iostream> #include <string> using namespace std; void Solve(int n) { string s, str="b"; int answer; cin >> s; for (int i=1; i<=n; ++i) { if (i%3 == 1) str='a'+str+'c'; else if (i%3 == 2) str='c'+str+'a'; else str='b'+str+</string></iostream>…