結果
| 問題 |
No.1764 Square
|
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2021-11-26 22:22:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 209 bytes |
| コンパイル時間 | 186 ms |
| コンパイル使用メモリ | 82,124 KB |
| 実行使用メモリ | 54,984 KB |
| 最終ジャッジ日時 | 2024-06-29 18:06:26 |
| 合計ジャッジ時間 | 920 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
from collections import deque
K=int(input())
Q=[deque(["A","E"]),deque(["B"]),deque(["C"]),deque(["D"])]
for i in range(K):
a=Q[i%4].popleft()
Q[(i+1)%4].append(a)
for q in Q:
print(*q,sep="")
Kazun