結果

問題 No.1971 Easy Sudoku
ユーザー ShirotsumeShirotsume
提出日時 2022-06-10 23:53:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 326 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 64,284 KB
最終ジャッジ日時 2023-10-21 05:54:21
合計ジャッジ時間 1,840 ms
ジャッジサーバーID
(参考情報)
judge10 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,296 KB
testcase_01 AC 49 ms
62,216 KB
testcase_02 AC 51 ms
64,264 KB
testcase_03 AC 48 ms
62,216 KB
testcase_04 AC 51 ms
64,264 KB
testcase_05 AC 41 ms
53,296 KB
testcase_06 AC 42 ms
53,296 KB
testcase_07 AC 51 ms
64,264 KB
testcase_08 AC 41 ms
53,296 KB
testcase_09 AC 47 ms
62,216 KB
testcase_10 AC 52 ms
64,284 KB
testcase_11 AC 38 ms
53,296 KB
testcase_12 AC 36 ms
53,296 KB
testcase_13 AC 49 ms
64,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
INF = 2 ** 63 - 1
mod = 998244353

n = ii()

a = [[0] * n for _ in range(n)]

for i in range(n):
    for j in range(n):
        a[i][j] = (i + j) % n + 1

for v in a:
    print(*v)
0