結果
| 問題 |
No.2492 Knapsack Problem?
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-10 19:33:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 152 bytes |
| コンパイル時間 | 335 ms |
| コンパイル使用メモリ | 82,268 KB |
| 実行使用メモリ | 66,168 KB |
| 最終ジャッジ日時 | 2025-01-02 15:54:44 |
| 合計ジャッジ時間 | 1,926 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 1 |
| other | AC * 8 RE * 1 |
ソースコード
n, ww = map(int, input().split()) v, w = map(list, zip(*[map(int, input().split()) for _ in range(n)])) print(max(v[i] for i in range(n) if w[i] <= ww))