結果

問題 No.1764 Square
ユーザー 👑 KazunKazun
提出日時 2021-11-26 22:22:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 102 ms / 2,000 ms
コード長 209 bytes
コンパイル時間 1,065 ms
コンパイル使用メモリ 86,728 KB
実行使用メモリ 71,664 KB
最終ジャッジ日時 2023-09-12 05:04:19
合計ジャッジ時間 1,913 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
71,576 KB
testcase_01 AC 100 ms
71,432 KB
testcase_02 AC 99 ms
71,280 KB
testcase_03 AC 100 ms
71,520 KB
testcase_04 AC 97 ms
71,636 KB
testcase_05 AC 100 ms
71,524 KB
testcase_06 AC 102 ms
71,664 KB
testcase_07 AC 97 ms
71,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque

K=int(input())

Q=[deque(["A","E"]),deque(["B"]),deque(["C"]),deque(["D"])]

for i in range(K):
    a=Q[i%4].popleft()
    Q[(i+1)%4].append(a)

for q in Q:
    print(*q,sep="")
0