結果
| 問題 | No.9 モンスターのレベル上げ |
| コンテスト | |
| ユーザー |
kou
|
| 提出日時 | 2019-12-16 22:21:59 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 4,801 ms / 5,000 ms |
| コード長 | 411 bytes |
| 記録 | |
| コンパイル時間 | 737 ms |
| コンパイル使用メモリ | 20,704 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-24 04:22:10 |
| 合計ジャッジ時間 | 48,027 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
import sys input = sys.stdin.readline from heapq import * from copy import deepcopy n = int(input()) ans = 1 << 30 p = [(l, 0) for l in map(int, input().split())] heapify(p) enemies = list(map(int, input().split())) for s in range(n): party = deepcopy(p) for i in range(n): l, t = heappop(party) heappush(party, (l + enemies[(s + i) % n] // 2, t + 1)) ans = min(ans, max(x for _, x in party)) print(ans)
kou