結果
| 問題 |
No.1169 Row and Column and Diagonal
|
| コンテスト | |
| ユーザー |
opt
|
| 提出日時 | 2020-07-27 00:52:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 285 bytes |
| コンパイル時間 | 2,062 ms |
| コンパイル使用メモリ | 192,900 KB |
| 最終ジャッジ日時 | 2025-01-12 06:40:09 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | WA * 13 |
ソースコード
#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
#define rep2(i, m, n) for (int i = (m); i < (n); ++i)
#define rep(i, n) rep2(i, 0, n)
int main() {
int n; cin >> n;
rep(i, n) {
rep(j, n) cout << ((i+j) % n + 1) << ' ';
cout << '\n';
}
return 0;
}
opt