結果

問題 No.1764 Square
ユーザー Eki1009Eki1009
提出日時 2021-11-26 22:21:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 71,880 KB
最終ジャッジ日時 2023-09-12 05:04:11
合計ジャッジ時間 1,941 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
71,824 KB
testcase_01 AC 94 ms
71,544 KB
testcase_02 AC 93 ms
71,880 KB
testcase_03 AC 97 ms
71,544 KB
testcase_04 AC 94 ms
71,644 KB
testcase_05 AC 94 ms
71,536 KB
testcase_06 AC 95 ms
71,816 KB
testcase_07 AC 93 ms
71,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
L = [deque(["A","E"]),deque(["B"]),deque(["C"]),deque(["D"])]
k = int(input())
for i in range(k):
    L[(i+1)%4].append(L[i%4].popleft())
for l in L:
    print("".join(l))
0