結果
| 問題 |
No.1971 Easy Sudoku
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-28 21:55:22 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 404 bytes |
| コンパイル時間 | 2,389 ms |
| コンパイル使用メモリ | 191,616 KB |
| 最終ジャッジ日時 | 2025-02-25 01:09:41 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, s, e) for (int i = (int)s; i < (int)e; ++i)
#define all(a) (a).begin(), (a).end()
int main() {
cin.tie(nullptr);
int N;
cin >> N;
rep(i, 0, N) {
rep(j, 0, N) {
cout << (i + j) % N + 1;
if (j == N - 1) cout << '\n';
else cout << ' ';
}
}
}