結果

問題 No.1764 Square
ユーザー lllllll88938494
提出日時 2022-01-11 07:23:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 319 bytes
コンパイル時間 702 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-14 11:25:00
合計ジャッジ時間 1,415 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque

dic={0:a,1:b,2:c,3:d}

a=deque('A')
b=deque('B')
c=deque('C')
d=deque('D')
a.append('E')
dic={0:a,1:b,2:c,3:d}
k=int(input())

for i in range(1,k+1):
    if len(dic[(i-1)%4]) == 0:
        continue
    dic[i%4].append(dic[(i-1)%4].popleft())

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