結果

問題 No.1764 Square
ユーザー lloyzlloyz
提出日時 2021-11-26 22:22:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 8,544 KB
最終ジャッジ日時 2023-09-12 05:04:37
合計ジャッジ時間 891 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from collections import deque
L = [deque(['A', 'E']), deque(['B']), deque(['C']), deque(['D'])]

k = int(input())
for i in range(k):
    s = L[i % 4].popleft()
    L[(i + 1) % 4].append(s)
for i in range(4):
    print(''.join(L[i]))
0