結果

問題 No.1764 Square
ユーザー tamatotamato
提出日時 2021-11-26 22:22:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 471 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 87,548 KB
実行使用メモリ 72,108 KB
最終ジャッジ日時 2023-09-12 05:04:33
合計ジャッジ時間 1,721 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
72,064 KB
testcase_01 AC 93 ms
71,828 KB
testcase_02 AC 94 ms
72,108 KB
testcase_03 AC 94 ms
72,064 KB
testcase_04 AC 95 ms
71,760 KB
testcase_05 AC 94 ms
71,808 KB
testcase_06 AC 95 ms
71,864 KB
testcase_07 AC 93 ms
72,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9
M = 5 * 10 ** 6


def main():
    import sys
    from collections import deque
    input = sys.stdin.readline

    Q = []
    Q.append(deque(["A", "E"]))
    Q.append(deque(["B"]))
    Q.append(deque(["C"]))
    Q.append(deque(["D"]))
    for i in range(int(input())):
        s = Q[i%4].popleft()
        Q[(i+1) % 4].append(s)
    for i in range(4):
        S = "".join(list(Q[i]))
        print(S)


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