結果

問題 No.1764 Square
ユーザー kohei2019
提出日時 2023-06-22 21:57:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 82,392 KB
実行使用メモリ 54,852 KB
最終ジャッジ日時 2024-06-30 04:07:39
合計ジャッジ時間 887 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
K = int(input())
lsq = [collections.deque(['A','E']),collections.deque(['B']),collections.deque(['C']),collections.deque(['D'])]

for i in range(K):
    lsq[(i+1)%4].append(lsq[i%4].popleft())

for i in range(4):
    print(*lsq[i],sep='')
0