結果

問題 No.2492 Knapsack Problem?
ユーザー KoiKoi
提出日時 2023-10-06 21:21:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 87,384 KB
実行使用メモリ 75,688 KB
最終ジャッジ日時 2023-10-06 21:21:48
合計ジャッジ時間 2,002 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,464 KB
testcase_01 AC 71 ms
71,444 KB
testcase_02 AC 77 ms
71,496 KB
testcase_03 AC 71 ms
71,476 KB
testcase_04 AC 72 ms
71,500 KB
testcase_05 AC 71 ms
71,332 KB
testcase_06 AC 77 ms
71,552 KB
testcase_07 AC 80 ms
71,616 KB
testcase_08 AC 78 ms
71,368 KB
testcase_09 AC 87 ms
75,688 KB
testcase_10 AC 86 ms
75,472 KB
testcase_11 AC 87 ms
75,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,W=map(int,input().split())
ans=-1
for i in range(N):
    u,w=map(int,input().split())
    if(w<W and ans<u):
        ans=u
print(ans)
0