結果

問題 No.3090 Knapsack Function
ユーザー ShirotsumeShirotsume
提出日時 2022-04-01 21:28:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 77,120 KB
最終ジャッジ日時 2023-08-12 17:57:41
合計ジャッジ時間 3,136 ms
ジャッジサーバーID
(参考情報)
judge9 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,316 KB
testcase_01 AC 72 ms
71,292 KB
testcase_02 AC 73 ms
71,404 KB
testcase_03 AC 72 ms
71,284 KB
testcase_04 AC 73 ms
71,380 KB
testcase_05 AC 72 ms
71,496 KB
testcase_06 AC 73 ms
71,380 KB
testcase_07 AC 74 ms
71,560 KB
testcase_08 AC 73 ms
71,480 KB
testcase_09 AC 73 ms
71,260 KB
testcase_10 AC 73 ms
71,380 KB
testcase_11 AC 74 ms
71,400 KB
testcase_12 AC 73 ms
71,212 KB
testcase_13 AC 74 ms
71,612 KB
testcase_14 AC 74 ms
71,608 KB
testcase_15 AC 73 ms
71,524 KB
testcase_16 AC 99 ms
76,932 KB
testcase_17 AC 108 ms
77,120 KB
testcase_18 AC 106 ms
77,000 KB
testcase_19 AC 96 ms
76,868 KB
testcase_20 AC 107 ms
76,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())

n = ii()

for i in range(n):
    u, v = mi()
    if v == 1:
        print('Yes')
        exit()
print('No')
0