結果

問題 No.1764 Square
ユーザー horitaka1999horitaka1999
提出日時 2021-11-26 22:45:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 287 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 71,672 KB
最終ジャッジ日時 2023-09-12 05:18:46
合計ジャッジ時間 1,821 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
71,668 KB
testcase_01 AC 101 ms
71,520 KB
testcase_02 AC 102 ms
71,292 KB
testcase_03 AC 102 ms
71,452 KB
testcase_04 AC 99 ms
71,672 KB
testcase_05 AC 101 ms
71,672 KB
testcase_06 AC 101 ms
71,496 KB
testcase_07 AC 99 ms
71,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
q = [deque() for _ in range(4)]
q[0].append('A')
q[0].append('E')
q[1].append('B')
q[2].append('C')
q[3].append('D')
mod = 4
K = int(input())
for i in range(K):
    x = q[i%mod].popleft()
    q[(i+1)%mod].append(x)
for i in range(4):
    print(*q[i],sep='')
0