結果

問題 No.1764 Square
ユーザー kept1994kept1994
提出日時 2022-04-28 14:28:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 351 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 71,804 KB
最終ジャッジ日時 2023-09-10 16:49:48
合計ジャッジ時間 1,940 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
71,440 KB
testcase_01 AC 92 ms
71,620 KB
testcase_02 AC 91 ms
71,236 KB
testcase_03 AC 92 ms
71,652 KB
testcase_04 AC 91 ms
71,404 KB
testcase_05 AC 91 ms
71,420 KB
testcase_06 AC 91 ms
71,804 KB
testcase_07 AC 90 ms
71,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

from collections import deque
import sys

def main():
    K = int(input())
    q = [deque(["A", "E"]), deque(["B"]), deque(["C"]), deque(["D"])]
    # print(q)
    for i in range(K):
        q[(i + 1) % 4].append(q[i % 4].popleft())
    for qq in q:
        print(*qq, sep="")
    return

if __name__ == '__main__':
    main()
0