結果

問題 No.1764 Square
ユーザー ShirotsumeShirotsume
提出日時 2021-11-26 22:47:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 71,896 KB
最終ジャッジ日時 2023-09-12 05:19:43
合計ジャッジ時間 1,896 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
71,816 KB
testcase_01 AC 96 ms
71,488 KB
testcase_02 AC 95 ms
71,796 KB
testcase_03 AC 97 ms
71,768 KB
testcase_04 AC 97 ms
71,724 KB
testcase_05 AC 96 ms
71,896 KB
testcase_06 AC 95 ms
71,716 KB
testcase_07 AC 95 ms
71,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque

d = [deque() for _ in range(4)]
d[0].append('A')
d[0].append('E')
d[1].append('B')
d[2].append('C')
d[3].append('D')

for i in range(int(input())):
    d[(i + 1) % 4].append(d[i % 4].popleft())

for i in range(4):
    print(''.join(d[i]))
0