結果

問題 No.1764 Square
ユーザー tktk
提出日時 2022-04-29 15:07:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 1,050 ms
コンパイル使用メモリ 86,736 KB
実行使用メモリ 71,784 KB
最終ジャッジ日時 2023-09-11 07:26:42
合計ジャッジ時間 2,256 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
71,676 KB
testcase_01 AC 97 ms
71,748 KB
testcase_02 AC 95 ms
71,780 KB
testcase_03 AC 98 ms
71,784 KB
testcase_04 AC 97 ms
71,648 KB
testcase_05 AC 98 ms
71,404 KB
testcase_06 AC 99 ms
71,668 KB
testcase_07 AC 100 ms
71,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
p = []
p.append(deque(["A","E"]))
p.append(deque(["B"]))
p.append(deque(["C"]))
p.append(deque(["D"]))
k = int(input())
for i in range(k):
    m = p[i % 4].popleft()
    p[(i + 1)%4].append(m)
for i in range(4):
    print("".join(p[i]))
0