結果

問題 No.1971 Easy Sudoku
ユーザー 8nd5t8nd5t
提出日時 2022-06-10 21:25:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 156 ms / 2,000 ms
コード長 739 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 81,804 KB
実行使用メモリ 86,056 KB
最終ジャッジ日時 2023-10-21 04:50:01
合計ジャッジ時間 3,380 ms
ジャッジサーバーID
(参考情報)
judge13 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
84,192 KB
testcase_01 AC 156 ms
85,016 KB
testcase_02 AC 147 ms
85,008 KB
testcase_03 AC 151 ms
86,056 KB
testcase_04 AC 148 ms
85,008 KB
testcase_05 AC 135 ms
84,132 KB
testcase_06 AC 137 ms
85,144 KB
testcase_07 AC 149 ms
85,008 KB
testcase_08 AC 135 ms
84,136 KB
testcase_09 AC 148 ms
85,012 KB
testcase_10 AC 151 ms
85,020 KB
testcase_11 AC 133 ms
84,196 KB
testcase_12 AC 144 ms
84,132 KB
testcase_13 AC 156 ms
86,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
from bisect import bisect_left,bisect_right 
import sys,math,itertools,pprint,fractions
sys.setrecursionlimit(10**8)
mod = 998244353
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_1(): return list(map(lambda x:int(x)-1, sys.stdin.readline().split()))
def inplm(): return map(int, sys.stdin.readline().split())
def inpl_1m(): return map(lambda x:int(x)-1, sys.stdin.readline().split())
def err(x): print(x); exit()

n = inp()
res = [[-1]*n for _ in range(n)]
for i in range(n):
    for j in range(n):
        res[i][j] = (i+j)%n+1
for x in res:
    print(*x)
0