結果

問題 No.1764 Square
ユーザー harurunharurun
提出日時 2021-10-12 18:47:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 10,500 KB
実行使用メモリ 8,564 KB
最終ジャッジ日時 2023-09-12 04:42:23
合計ジャッジ時間 838 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,548 KB
testcase_01 AC 18 ms
8,500 KB
testcase_02 AC 19 ms
8,556 KB
testcase_03 AC 19 ms
8,564 KB
testcase_04 AC 18 ms
8,376 KB
testcase_05 AC 18 ms
8,444 KB
testcase_06 AC 18 ms
8,488 KB
testcase_07 AC 17 ms
8,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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