結果

問題 No.1764 Square
ユーザー Hydru
提出日時 2021-11-26 22:39:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 131 ms
コンパイル使用メモリ 82,300 KB
実行使用メモリ 54,888 KB
最終ジャッジ日時 2024-06-29 18:16:20
合計ジャッジ時間 904 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

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