結果

問題 No.1764 Square
ユーザー miya145592miya145592
提出日時 2023-05-06 02:38:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 53,760 KB
最終ジャッジ日時 2024-11-23 14:29:42
合計ジャッジ時間 1,281 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
K = int(input())
deq = [deque() for _ in range(4)]
for i in range(5):
    deq[i%4].append(chr(ord('A')+i))
for i in range(K):
    c = deq[i%4].popleft()
    deq[(i+1)%4].append(c)
for i in range(4):
    print("".join(deq[i]))
0