結果

問題 No.3090 Knapsack Function
ユーザー chineristACchineristAC
提出日時 2022-04-01 21:41:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 287 ms / 2,000 ms
コード長 409 bytes
コンパイル時間 952 ms
コンパイル使用メモリ 86,736 KB
実行使用メモリ 95,028 KB
最終ジャッジ日時 2023-08-12 18:23:38
合計ジャッジ時間 7,846 ms
ジャッジサーバーID
(参考情報)
judge9 / judge7
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 251 ms
92,828 KB
testcase_01 AC 249 ms
92,920 KB
testcase_02 AC 249 ms
92,764 KB
testcase_03 AC 250 ms
92,956 KB
testcase_04 AC 252 ms
93,024 KB
testcase_05 AC 252 ms
93,052 KB
testcase_06 AC 250 ms
93,036 KB
testcase_07 AC 251 ms
93,076 KB
testcase_08 AC 250 ms
93,088 KB
testcase_09 AC 251 ms
92,884 KB
testcase_10 AC 251 ms
92,776 KB
testcase_11 AC 254 ms
92,780 KB
testcase_12 AC 248 ms
93,048 KB
testcase_13 AC 248 ms
92,888 KB
testcase_14 AC 247 ms
92,772 KB
testcase_15 AC 248 ms
92,716 KB
testcase_16 AC 277 ms
94,808 KB
testcase_17 AC 287 ms
94,752 KB
testcase_18 AC 279 ms
94,836 KB
testcase_19 AC 269 ms
95,004 KB
testcase_20 AC 283 ms
95,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
from heapq import heapify,heappop,heappush
from itertools import permutations
from math import gcd
from fractions import Fraction

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

N = int(input())
for _ in range(N):
    v,w = mi()
    if w==1:
        exit(print("Yes"))
print("No")
0