結果

問題 No.1764 Square
コンテスト
ユーザー Hydru
提出日時 2021-11-26 22:39:22
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 79 ms / 2,000 ms
+ 230µs
コード長 215 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 241 ms
コンパイル使用メモリ 95,980 KB
実行使用メモリ 79,360 KB
最終ジャッジ日時 2026-08-01 22:15:47
合計ジャッジ時間 1,844 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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