結果

問題 No.1971 Easy Sudoku
ユーザー harurunharurun
提出日時 2021-08-20 16:44:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 11,924 KB
実行使用メモリ 10,324 KB
最終ジャッジ日時 2023-10-21 06:03:59
合計ジャッジ時間 1,444 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,096 KB
testcase_01 AC 31 ms
10,224 KB
testcase_02 AC 35 ms
10,320 KB
testcase_03 AC 37 ms
10,324 KB
testcase_04 AC 34 ms
10,324 KB
testcase_05 AC 30 ms
10,148 KB
testcase_06 AC 32 ms
10,112 KB
testcase_07 AC 36 ms
10,324 KB
testcase_08 AC 31 ms
10,136 KB
testcase_09 AC 31 ms
10,196 KB
testcase_10 AC 35 ms
10,324 KB
testcase_11 AC 31 ms
10,096 KB
testcase_12 AC 31 ms
10,096 KB
testcase_13 AC 38 ms
10,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  S=open(0).read().rstrip("\n")
  assert(1<=len(S)<=3)
  for i in S:
    assert(ord("0")<=ord(i)<=ord("9"))
  N=int(S)
  assert(1<=N<=100)
  for i in range(N):
    for j in range(N):
      print((i+j)%N+1,end=" ")
    print()
  return

main()
0