ABC036B - 回転
問題:B - 回転
#include <iostream> #include <string> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void){ int n; string s[50]; cin.tie(0); ios::sync_with_stdio(false); cin >> n; REP(i, n) { cin >> s[i]; } REP(i, n) { REP(j, n) { cout << s[n - 1 - j][i]; } cout << "\n"; } return 0; }