結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
iad_2889
|
| 提出日時 | 2019-05-30 01:35:46 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 562 bytes |
| 記録 | |
| コンパイル時間 | 300 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-08-29 16:47:31 |
| 合計ジャッジ時間 | 5,383 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | TLE * 1 -- * 10 |
ソースコード
from itertools import combinations_with_replacement as cmb
NEXT_LEVEL = 3000000
PENALTY = 30000
def round_1h(exp, death):
return exp-PENALTY*death
N = int(input())
stage = [round_1h(*map(int, input().split())) for x in range(N)]
stage = [(i+1, x) for i, x in enumerate(stage) if x > 0]
ans = "NO"
if stage:
for cb in cmb(stage, 6):
temp = NEXT_LEVEL
lst = []
for i, score in cb:
temp -= score
lst.append(i)
if temp <= 0:
ans = "\n".join(map(str, lst))
break
print(ans)
iad_2889