結果

問題 No.3090 Knapsack Function
ユーザー souta-1326souta-1326
提出日時 2022-04-01 22:01:01
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 263 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 8,404 KB
最終ジャッジ日時 2023-08-12 18:55:51
合計ジャッジ時間 2,661 ms
ジャッジサーバーID
(参考情報)
judge7 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,256 KB
testcase_01 AC 15 ms
8,304 KB
testcase_02 AC 16 ms
7,868 KB
testcase_03 AC 15 ms
8,184 KB
testcase_04 AC 15 ms
8,404 KB
testcase_05 AC 16 ms
7,940 KB
testcase_06 AC 16 ms
7,884 KB
testcase_07 AC 16 ms
8,360 KB
testcase_08 AC 16 ms
8,176 KB
testcase_09 AC 16 ms
8,172 KB
testcase_10 AC 16 ms
7,936 KB
testcase_11 AC 16 ms
8,356 KB
testcase_12 AC 16 ms
7,900 KB
testcase_13 AC 16 ms
8,156 KB
testcase_14 AC 16 ms
8,320 KB
testcase_15 AC 16 ms
8,304 KB
testcase_16 AC 174 ms
8,384 KB
testcase_17 AC 263 ms
8,044 KB
testcase_18 AC 253 ms
8,208 KB
testcase_19 AC 149 ms
8,196 KB
testcase_20 AC 256 ms
8,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N=int(input())
for i in range(N):
    v,w=map(int,input().split())
    if w==1:
        print("Yes");exit()
print("No")
0