結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー |
![]() |
提出日時 | 2019-05-30 01:35:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 562 bytes |
コンパイル時間 | 69 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 24,640 KB |
最終ジャッジ日時 | 2024-09-17 16:04:43 |
合計ジャッジ時間 | 4,821 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)