結果
問題 |
No.2492 Knapsack Problem?
|
ユーザー |
|
提出日時 | 2023-09-14 14:42:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 65 ms / 2,000 ms |
コード長 | 143 bytes |
コンパイル時間 | 202 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 63,360 KB |
最終ジャッジ日時 | 2024-07-26 15:34:18 |
合計ジャッジ時間 | 1,351 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
ソースコード
n, w = map(int, input().split(" ")) print(max(map(lambda x: -1 if x[1] > w else x[0], [list(map(int, input().split(" "))) for _ in range(n)])))