結果
| 問題 | No.1764 Square |
| コンテスト | |
| ユーザー |
puzneko
|
| 提出日時 | 2022-01-08 00:53:30 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 420µs | |
| コード長 | 317 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-09-22 07:06:28 |
| 合計ジャッジ時間 | 2,153 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
from collections import deque
n = int(input())
que = [deque() for i in range(4)]
que[0].append("A")
que[1].append("B")
que[2].append("C")
que[3].append("D")
que[0].append("E")
for i in range(n):
kari = que[i%4].popleft()
que[(i+1)%4].append(kari)
for i in range(4):
ans = "".join(que[i])
print(ans)
puzneko