結果

問題 No.1971 Easy Sudoku
ユーザー EguyEguy
提出日時 2022-06-10 21:24:32
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 1,693 ms
コンパイル使用メモリ 81,152 KB
実行使用メモリ 64,308 KB
最終ジャッジ日時 2023-10-21 04:49:25
合計ジャッジ時間 1,943 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,368 KB
testcase_01 AC 50 ms
62,232 KB
testcase_02 AC 51 ms
64,284 KB
testcase_03 AC 51 ms
62,236 KB
testcase_04 AC 52 ms
64,284 KB
testcase_05 AC 41 ms
53,368 KB
testcase_06 AC 40 ms
53,368 KB
testcase_07 AC 55 ms
64,284 KB
testcase_08 AC 44 ms
53,368 KB
testcase_09 AC 49 ms
62,236 KB
testcase_10 AC 54 ms
64,308 KB
testcase_11 AC 39 ms
53,368 KB
testcase_12 AC 39 ms
53,368 KB
testcase_13 AC 52 ms
64,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, math
sys.setrecursionlimit(1000000)
INF = 1 << 100
#mod = 1000000007
mod = 998244353
input = lambda: sys.stdin.readline().rstrip()
li = lambda: list(map(int, input().split()))


N = int(input())
ans = [[0] * N for _ in range(N)]
x = 0
for i in range(N):
    for j in range(N):
        ans[j][(j+x)%N] = i+1
    x += 1

for a in ans:
    print(*a)
0