結果

問題 No.3090 Knapsack Function
ユーザー tassei903tassei903
提出日時 2022-04-01 21:31:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 161 ms / 2,000 ms
コード長 434 bytes
コンパイル時間 452 ms
コンパイル使用メモリ 87,276 KB
実行使用メモリ 92,044 KB
最終ジャッジ日時 2023-08-12 18:03:21
合計ジャッジ時間 3,661 ms
ジャッジサーバーID
(参考情報)
judge7 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,316 KB
testcase_01 AC 76 ms
71,100 KB
testcase_02 AC 75 ms
71,484 KB
testcase_03 AC 75 ms
71,104 KB
testcase_04 AC 75 ms
71,316 KB
testcase_05 AC 74 ms
71,372 KB
testcase_06 AC 76 ms
71,468 KB
testcase_07 AC 76 ms
71,108 KB
testcase_08 AC 75 ms
71,132 KB
testcase_09 AC 76 ms
71,104 KB
testcase_10 AC 75 ms
71,356 KB
testcase_11 AC 75 ms
71,360 KB
testcase_12 AC 75 ms
71,156 KB
testcase_13 AC 75 ms
71,356 KB
testcase_14 AC 76 ms
71,272 KB
testcase_15 AC 77 ms
71,476 KB
testcase_16 AC 160 ms
91,972 KB
testcase_17 AC 161 ms
91,840 KB
testcase_18 AC 159 ms
92,044 KB
testcase_19 AC 160 ms
91,740 KB
testcase_20 AC 161 ms
91,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################
n = ni()
v,w = zip(*[na() for i in range(n)])
if 1 in w:
    Yes()
else:
    No()
0