結果

問題 No.1764 Square
ユーザー kohei2019kohei2019
提出日時 2023-06-22 21:57:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 86,584 KB
実行使用メモリ 71,448 KB
最終ジャッジ日時 2023-09-12 16:12:15
合計ジャッジ時間 1,670 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
71,384 KB
testcase_01 AC 86 ms
71,232 KB
testcase_02 AC 88 ms
71,448 KB
testcase_03 AC 86 ms
71,240 KB
testcase_04 AC 88 ms
71,424 KB
testcase_05 AC 87 ms
71,308 KB
testcase_06 AC 85 ms
71,376 KB
testcase_07 AC 87 ms
71,360 KB
権限があれば一括ダウンロードができます

ソースコード

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