結果

問題 No.1764 Square
ユーザー H3PO4H3PO4
提出日時 2021-11-26 22:24:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 8,568 KB
最終ジャッジ日時 2023-09-12 05:06:23
合計ジャッジ時間 890 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,568 KB
testcase_01 AC 18 ms
8,540 KB
testcase_02 AC 19 ms
8,544 KB
testcase_03 AC 18 ms
8,540 KB
testcase_04 AC 18 ms
8,460 KB
testcase_05 AC 19 ms
8,484 KB
testcase_06 AC 19 ms
8,460 KB
testcase_07 AC 18 ms
8,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque

K = int(input())
q = [deque(['A', 'E']), deque('B'), deque('C'), deque('D')]
for i in range(K):
    q[(i + 1) % 4].append(q[i % 4].popleft())
for x in q:
    print(''.join(map(str, x)))
0