結果
| 問題 | No.3703 回転 (Rotation) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-11 00:17:34 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 12 ms / 2,000 ms |
| + 945µs | |
| コード長 | 368 bytes |
| 記録 | |
| コンパイル時間 | 2,137 ms |
| コンパイル使用メモリ | 177,104 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-11 00:17:44 |
| 合計ジャッジ時間 | 4,613 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ll = long long;
int main(void){
int h, w; cin >> h >> w;
vector<string> s(h), ans(w, string(h, '.'));
for(auto&x:s) cin >> x;
for(int i=0; i<h; i++)for(int j=0; j<w; j++){
int ni=j, nj=h-1-i;
ans[ni][nj]=s[i][j];
}
for(auto&x:ans) cout << x << endl;
return 0;
}