結果

問題 No.1764 Square
ユーザー Goltermann大和Goltermann大和
提出日時 2021-11-26 22:43:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 10,880 KB
実行使用メモリ 7,900 KB
最終ジャッジ日時 2023-09-12 05:18:13
合計ジャッジ時間 1,256 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,880 KB
testcase_01 AC 17 ms
7,900 KB
testcase_02 AC 17 ms
7,772 KB
testcase_03 AC 16 ms
7,768 KB
testcase_04 AC 16 ms
7,768 KB
testcase_05 AC 16 ms
7,768 KB
testcase_06 AC 17 ms
7,788 KB
testcase_07 AC 16 ms
7,880 KB
権限があれば一括ダウンロードができます

ソースコード

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