結果

問題 No.1764 Square
ユーザー lllllll88938494lllllll88938494
提出日時 2022-01-11 07:25:01
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 319 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 65,024 KB
最終ジャッジ日時 2024-04-26 20:29:41
合計ジャッジ時間 1,283 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
権限があれば一括ダウンロードができます

ソースコード

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