結果

問題 No.1764 Square
ユーザー Shirotsume
提出日時 2021-11-26 22:46:38
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 265 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 64,768 KB
最終ジャッジ日時 2024-06-29 18:19:13
合計ジャッジ時間 965 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 RE * 1
other RE * 5
権限があれば一括ダウンロードができます

ソースコード

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].popleft())

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