結果

問題 No.1764 Square
ユーザー 👑 H20H20
提出日時 2021-11-26 22:26:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 287 bytes
コンパイル時間 1,519 ms
コンパイル使用メモリ 86,972 KB
実行使用メモリ 71,904 KB
最終ジャッジ日時 2023-09-12 05:07:55
合計ジャッジ時間 2,314 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
71,500 KB
testcase_01 AC 90 ms
71,800 KB
testcase_02 AC 92 ms
71,520 KB
testcase_03 AC 91 ms
71,676 KB
testcase_04 AC 92 ms
71,904 KB
testcase_05 AC 90 ms
71,532 KB
testcase_06 AC 89 ms
71,540 KB
testcase_07 AC 94 ms
71,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
Q = [collections.deque() for _ in range(4)]
Q[0].append('A')
Q[0].append('E')
Q[1].append('B')
Q[2].append('C')
Q[3].append('D')
K = int(input())
for i in range(1,K+1):
    temp = Q[(i-1)%4].popleft()
    Q[i%4].append(temp)
for q in Q:
    print(''.join(map(str, q)))
0