結果
| 問題 | No.8090 Knapsack Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-24 20:58:17 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 74 ms / 2,000 ms |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 349 ms |
| コンパイル使用メモリ | 85,636 KB |
| 実行使用メモリ | 90,244 KB |
| 最終ジャッジ日時 | 2026-05-08 19:19:33 |
| 合計ジャッジ時間 | 2,797 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
import sys
input = lambda: sys.stdin.readline().rstrip()
# ----------------------- #
n = int(input())
uv = [list(map(int, input().split())) for _ in range(n)]
one = False
for u,v in uv:
if v == 1:
one = True
print('Yes' if one else 'No')