結果

問題 No.3090 Knapsack Function
ユーザー ikomaikoma
提出日時 2022-04-01 22:05:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 273 ms / 2,000 ms
コード長 134 bytes
コンパイル時間 429 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 87,664 KB
最終ジャッジ日時 2023-08-12 19:02:24
合計ジャッジ時間 4,094 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,376 KB
testcase_01 AC 74 ms
70,972 KB
testcase_02 AC 70 ms
71,112 KB
testcase_03 AC 71 ms
71,064 KB
testcase_04 AC 71 ms
71,276 KB
testcase_05 AC 71 ms
71,296 KB
testcase_06 AC 76 ms
71,200 KB
testcase_07 AC 72 ms
71,196 KB
testcase_08 AC 71 ms
71,388 KB
testcase_09 AC 70 ms
71,460 KB
testcase_10 AC 72 ms
71,204 KB
testcase_11 AC 72 ms
71,424 KB
testcase_12 AC 71 ms
71,340 KB
testcase_13 AC 71 ms
71,208 KB
testcase_14 AC 71 ms
71,340 KB
testcase_15 AC 73 ms
71,204 KB
testcase_16 AC 273 ms
87,664 KB
testcase_17 AC 268 ms
87,556 KB
testcase_18 AC 270 ms
87,304 KB
testcase_19 AC 260 ms
87,608 KB
testcase_20 AC 262 ms
87,600 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
VW=[list(map(int,input().split())) for _ in range(N)]
VW.sort(key=lambda x:x[1])

print("Yes" if VW[0][1]==1 else "No")
0