結果

問題 No.1764 Square
ユーザー gr1msl3ygr1msl3y
提出日時 2021-11-26 22:23:06
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 87,288 KB
実行使用メモリ 71,804 KB
最終ジャッジ日時 2023-09-12 05:04:39
合計ジャッジ時間 1,767 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
71,736 KB
testcase_01 AC 96 ms
71,768 KB
testcase_02 AC 97 ms
71,804 KB
testcase_03 AC 96 ms
71,428 KB
testcase_04 AC 98 ms
71,636 KB
testcase_05 AC 96 ms
71,516 KB
testcase_06 AC 96 ms
71,632 KB
testcase_07 AC 96 ms
71,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
K = int(input())
A = [deque(['A', 'E']), deque(['B']), deque(['C']), deque(['D'])]
for i in range(K):
    a = A[i % 4].popleft()
    A[(i+1) % 4].append(a)

for a in A:
    print(''.join(a))
0