結果

問題 No.3090 Knapsack Function
ユーザー floraflora
提出日時 2022-04-01 21:31:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 168 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 599 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 84,104 KB
最終ジャッジ日時 2023-08-12 18:03:07
合計ジャッジ時間 3,566 ms
ジャッジサーバーID
(参考情報)
judge12 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,188 KB
testcase_01 AC 72 ms
71,280 KB
testcase_02 AC 71 ms
71,380 KB
testcase_03 AC 69 ms
71,324 KB
testcase_04 AC 70 ms
71,296 KB
testcase_05 AC 70 ms
71,252 KB
testcase_06 AC 72 ms
71,108 KB
testcase_07 AC 71 ms
71,252 KB
testcase_08 AC 72 ms
71,332 KB
testcase_09 AC 71 ms
71,168 KB
testcase_10 AC 73 ms
71,512 KB
testcase_11 AC 71 ms
71,376 KB
testcase_12 AC 71 ms
71,372 KB
testcase_13 AC 73 ms
71,316 KB
testcase_14 AC 74 ms
71,296 KB
testcase_15 AC 74 ms
71,248 KB
testcase_16 AC 168 ms
83,652 KB
testcase_17 AC 147 ms
83,360 KB
testcase_18 AC 167 ms
84,104 KB
testcase_19 AC 165 ms
83,584 KB
testcase_20 AC 166 ms
84,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
v,w=[],[]
flag=False
for _ in range(N):
	hv,hw=map(int,input().split())
	v.append(hv)
	w.append(hw)
	if hw==1:
		flag=True

#もしwが1のものがあれば必ず単調増加になる
if flag:
	print("Yes")
else:
	print("No")
0