結果

問題 No.3090 Knapsack Function
ユーザー KudeKude
提出日時 2022-04-01 22:06:47
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 166 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 590 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 78,348 KB
最終ジャッジ日時 2023-08-12 19:04:29
合計ジャッジ時間 3,795 ms
ジャッジサーバーID
(参考情報)
judge9 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,508 KB
testcase_01 AC 67 ms
71,400 KB
testcase_02 AC 65 ms
71,492 KB
testcase_03 AC 65 ms
71,500 KB
testcase_04 AC 67 ms
71,412 KB
testcase_05 AC 69 ms
71,368 KB
testcase_06 AC 69 ms
71,504 KB
testcase_07 AC 67 ms
71,504 KB
testcase_08 AC 67 ms
71,252 KB
testcase_09 AC 67 ms
71,100 KB
testcase_10 AC 70 ms
71,372 KB
testcase_11 AC 71 ms
71,004 KB
testcase_12 AC 69 ms
71,312 KB
testcase_13 AC 68 ms
71,484 KB
testcase_14 AC 73 ms
71,416 KB
testcase_15 AC 67 ms
71,456 KB
testcase_16 AC 166 ms
78,296 KB
testcase_17 AC 125 ms
77,312 KB
testcase_18 AC 143 ms
78,348 KB
testcase_19 AC 142 ms
77,576 KB
testcase_20 AC 145 ms
77,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ok = False
for _ in range(n):
    v, w = map(int, input().split())
    if w == 1:
        ok = True
print('Yes' if ok else 'No')
0