結果

問題 No.3090 Knapsack Function
ユーザー MasKoaTSMasKoaTS
提出日時 2022-04-01 21:29:40
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 284 ms / 2,000 ms
コード長 802 bytes
コンパイル時間 349 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 93,616 KB
最終ジャッジ日時 2023-08-12 18:00:41
合計ジャッジ時間 6,622 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 206 ms
80,780 KB
testcase_01 AC 205 ms
80,716 KB
testcase_02 AC 210 ms
80,548 KB
testcase_03 AC 207 ms
80,728 KB
testcase_04 AC 207 ms
80,768 KB
testcase_05 AC 210 ms
80,736 KB
testcase_06 AC 209 ms
80,884 KB
testcase_07 AC 207 ms
80,752 KB
testcase_08 AC 207 ms
80,712 KB
testcase_09 AC 206 ms
80,772 KB
testcase_10 AC 205 ms
80,868 KB
testcase_11 AC 208 ms
80,752 KB
testcase_12 AC 212 ms
80,852 KB
testcase_13 AC 209 ms
80,632 KB
testcase_14 AC 208 ms
80,820 KB
testcase_15 AC 206 ms
80,792 KB
testcase_16 AC 281 ms
93,352 KB
testcase_17 AC 280 ms
93,544 KB
testcase_18 AC 281 ms
93,348 KB
testcase_19 AC 279 ms
93,616 KB
testcase_20 AC 284 ms
93,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from functools import cmp_to_key
import math
import sys
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
sys.setrecursionlimit(10 ** 6)
inp = sys.stdin.readline
input = lambda : inp().rstrip()
getN = lambda : int(inp())
getNs = lambda : map(int, inp().split())
getList = lambda :list(map(int, inp().split()))
getStrs = lambda n : [input() for _ in [0] * n]
def yexit(): print("Yes"); exit(0)
def nexit(): print("No"); exit(0)
pi = 3.141592653589793
mod = 1000000007
MOD = 998244353
INF = 4611686018427387903
dx = [1, 0, -1, 0];	dy = [0, 1, 0, -1]


"""
Main Code
"""

n = getN()
lis = [getList() for _ in [0] * n]
for v, w in lis:
	if(w == 1):
		yexit()
nexit()
0