結果

問題 No.1764 Square
ユーザー Navier_Boltzmann
提出日時 2021-11-27 17:23:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-30 08:18:40
合計ジャッジ時間 840 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

K = int(input())
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')
for i in range(K):
    x = q[i%4].popleft()
    q[(i+1)%4].append(x)
for i in range(4):
    print("".join(q[i]))
0