結果

問題 No.1764 Square
ユーザー HydruHydru
提出日時 2021-11-26 22:39:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 553 ms
コンパイル使用メモリ 87,260 KB
実行使用メモリ 71,856 KB
最終ジャッジ日時 2023-09-12 05:16:01
合計ジャッジ時間 2,057 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,564 KB
testcase_01 AC 92 ms
71,772 KB
testcase_02 AC 92 ms
71,856 KB
testcase_03 AC 92 ms
71,712 KB
testcase_04 AC 92 ms
71,608 KB
testcase_05 AC 93 ms
71,776 KB
testcase_06 AC 93 ms
71,472 KB
testcase_07 AC 92 ms
71,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
queue=[deque(["A","E"]),deque("B"),deque("C"),deque("D")]

K=int(input())
for i in range(K):
    x=queue[i%4].popleft()
    queue[(i+1)%4].append(x)
for x in queue:
    print(*x,sep="")
0