結果

問題 No.1764 Square
ユーザー brthyyjpbrthyyjp
提出日時 2021-11-26 23:07:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 53,888 KB
最終ジャッジ日時 2024-06-29 18:30:23
合計ジャッジ時間 1,141 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())

from collections import deque
Q = [deque(['A', 'E']), deque(['B']), deque(['C']), deque(['D'])]
for i in range(k):
    x = Q[i%4].popleft()
    Q[(i+1)%4].append(x)
for i in range(4):
    print(''.join(Q[i]))
0