結果

問題 No.1764 Square
ユーザー brthyyjpbrthyyjp
提出日時 2021-11-26 23:07:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 71,868 KB
最終ジャッジ日時 2023-09-12 05:31:34
合計ジャッジ時間 1,762 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,812 KB
testcase_01 AC 89 ms
71,648 KB
testcase_02 AC 91 ms
71,868 KB
testcase_03 AC 93 ms
71,716 KB
testcase_04 AC 88 ms
71,712 KB
testcase_05 AC 90 ms
71,840 KB
testcase_06 AC 92 ms
71,760 KB
testcase_07 AC 92 ms
71,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())

from collections import deque
Q = [deque(['A', 'E']), deque(['B']), deque(['C']), deque(['D'])]
for i in range(k):
    x = Q[i%4].popleft()
    Q[(i+1)%4].append(x)
for i in range(4):
    print(''.join(Q[i]))
0