結果
| 問題 | No.2492 Knapsack Problem? |
| コンテスト | |
| ユーザー |
miztom
|
| 提出日時 | 2024-03-15 13:10:17 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 42 ms / 2,000 ms |
| + 499µs | |
| コード長 | 117 bytes |
| 記録 | |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 64,384 KB |
| 実行使用メモリ | 57,728 KB |
| 最終ジャッジ日時 | 2026-11-12 16:13:29 |
| 合計ジャッジ時間 | 1,858 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
n,w=map(int,input().split())
r=-1
for i in range(n):
v,u=map(int,input().split())
if u<=w:r=max(r,v)
print(r)
miztom