結果
問題 |
No.1169 Row and Column and Diagonal
|
ユーザー |
![]() |
提出日時 | 2020-08-18 14:08:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 310 bytes |
コンパイル時間 | 2,116 ms |
コンパイル使用メモリ | 194,752 KB |
最終ジャッジ日時 | 2025-01-13 03:05:02 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | WA * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector V(N, 0); for (int i = 0; i < N; i++) V.at(i) = i + 1; for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) cout << V.at(j) << ((j == N - 1) ? "\n" : " "); rotate(V.begin(), V.begin() + 1, V.end()); } }