結果

問題 No.1764 Square
ユーザー hir355hir355
提出日時 2021-11-26 22:25:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 86,828 KB
実行使用メモリ 71,668 KB
最終ジャッジ日時 2023-09-12 05:07:17
合計ジャッジ時間 1,867 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
71,604 KB
testcase_01 AC 92 ms
71,664 KB
testcase_02 AC 92 ms
71,652 KB
testcase_03 AC 91 ms
71,668 KB
testcase_04 AC 90 ms
71,652 KB
testcase_05 AC 89 ms
71,472 KB
testcase_06 AC 91 ms
71,552 KB
testcase_07 AC 91 ms
71,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
x = [deque('AE'), deque('B'), deque('C'), deque('D')]
k = int(input())
for i in range(k):
    p = x[i % 4].popleft()
    x[(i + 1) % 4].append(p)
for i in range(4):
    print(*x[i], sep='')
0