結果

問題 No.1764 Square
ユーザー Goltermann大和Goltermann大和
提出日時 2021-11-26 22:41:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 343 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 7,988 KB
最終ジャッジ日時 2023-09-12 05:16:26
合計ジャッジ時間 1,058 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

q0 = ["A","E"]
q1 = ["B"]
q2 = ["C"]
q3 = ["D"]
k = int(input())

for i in range(k):
    if i%4 ==0:
        q1.append(q0.pop(0))
    elif i%4 ==1:
        q2.append(q1.pop(0))
    elif i%4 ==2:
        q3.append(q2.pop(0))
    else:
        q0.append(q3.pop(0))

print(" ".join(q0))
print(" ".join(q1))
print(" ".join(q2))
print(" ".join(q3))
0