結果

問題 No.2492 Knapsack Problem?
ユーザー KumaTachiRenKumaTachiRen
提出日時 2023-09-14 14:42:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 76,296 KB
最終ジャッジ日時 2023-10-06 20:50:12
合計ジャッジ時間 1,912 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,464 KB
testcase_01 AC 70 ms
71,152 KB
testcase_02 AC 70 ms
71,560 KB
testcase_03 AC 69 ms
71,296 KB
testcase_04 AC 70 ms
71,456 KB
testcase_05 AC 68 ms
71,356 KB
testcase_06 AC 75 ms
71,392 KB
testcase_07 AC 74 ms
71,344 KB
testcase_08 AC 75 ms
71,652 KB
testcase_09 AC 86 ms
76,132 KB
testcase_10 AC 86 ms
76,296 KB
testcase_11 AC 86 ms
76,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)])))
0