結果

問題 No.3090 Knapsack Function
ユーザー 👑 H20H20
提出日時 2022-04-01 23:17:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 82,468 KB
実行使用メモリ 86,544 KB
最終ジャッジ日時 2024-04-30 15:57:52
合計ジャッジ時間 2,225 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
53,416 KB
testcase_01 AC 32 ms
53,476 KB
testcase_02 AC 30 ms
52,960 KB
testcase_03 AC 31 ms
52,332 KB
testcase_04 AC 31 ms
52,740 KB
testcase_05 AC 30 ms
52,652 KB
testcase_06 AC 32 ms
53,184 KB
testcase_07 AC 32 ms
54,400 KB
testcase_08 AC 31 ms
52,948 KB
testcase_09 AC 34 ms
52,984 KB
testcase_10 AC 31 ms
53,544 KB
testcase_11 AC 32 ms
53,636 KB
testcase_12 AC 31 ms
52,664 KB
testcase_13 AC 33 ms
52,708 KB
testcase_14 AC 33 ms
53,916 KB
testcase_15 AC 35 ms
52,748 KB
testcase_16 AC 117 ms
86,064 KB
testcase_17 AC 122 ms
86,544 KB
testcase_18 AC 123 ms
86,228 KB
testcase_19 AC 118 ms
86,216 KB
testcase_20 AC 125 ms
86,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
VW = [list(map(int, input().split())) for _ in range(N)]
for v,w in VW:
    if w==1:
        print('Yes')
        exit()
print('No')
0