結果

問題 No.1971 Easy Sudoku
ユーザー june19312june19312
提出日時 2022-06-10 22:22:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 81,376 KB
実行使用メモリ 66,248 KB
最終ジャッジ日時 2023-10-21 05:23:39
合計ジャッジ時間 1,826 ms
ジャッジサーバーID
(参考情報)
judge10 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
53,240 KB
testcase_01 AC 54 ms
64,168 KB
testcase_02 AC 56 ms
64,184 KB
testcase_03 AC 56 ms
64,184 KB
testcase_04 AC 57 ms
66,232 KB
testcase_05 AC 46 ms
55,308 KB
testcase_06 AC 45 ms
55,308 KB
testcase_07 AC 58 ms
66,232 KB
testcase_08 AC 49 ms
55,308 KB
testcase_09 AC 56 ms
64,184 KB
testcase_10 AC 58 ms
66,248 KB
testcase_11 AC 44 ms
53,260 KB
testcase_12 AC 44 ms
53,260 KB
testcase_13 AC 57 ms
66,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
n=int(input())
t=deque()

for i in range(1,n+1):
    t.append(i)
    
ans=[]
for i in range(n):
    tmp=[]
    for ii,vv in enumerate(t):
        tmp.append(vv)
    ans.append(tmp)
    t.append(t.popleft())

for i in ans:
    print(*list(i))
0