結果

問題 No.3090 Knapsack Function
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2022-04-01 21:36:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 848 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 76,988 KB
最終ジャッジ日時 2023-08-12 18:13:55
合計ジャッジ時間 3,266 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,096 KB
testcase_01 AC 71 ms
71,520 KB
testcase_02 AC 69 ms
71,468 KB
testcase_03 AC 73 ms
71,308 KB
testcase_04 AC 71 ms
71,384 KB
testcase_05 AC 72 ms
71,464 KB
testcase_06 AC 72 ms
71,316 KB
testcase_07 AC 73 ms
71,432 KB
testcase_08 AC 74 ms
71,228 KB
testcase_09 AC 72 ms
71,300 KB
testcase_10 AC 74 ms
71,248 KB
testcase_11 AC 73 ms
71,392 KB
testcase_12 AC 72 ms
71,528 KB
testcase_13 AC 71 ms
71,464 KB
testcase_14 AC 71 ms
71,424 KB
testcase_15 AC 71 ms
71,536 KB
testcase_16 AC 107 ms
76,892 KB
testcase_17 AC 103 ms
76,804 KB
testcase_18 AC 107 ms
76,768 KB
testcase_19 AC 104 ms
76,988 KB
testcase_20 AC 105 ms
76,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from sys import stdin

N = int(stdin.readline())

one = False

for i in range(N):

    v,w = map(int,stdin.readline().split())
    if w == 1:
        one = True

if one:
    print ("Yes")
else:
    print ("No")
0