結果
| 問題 | No.8090 Knapsack Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-24 20:58:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 139 ms / 2,000 ms |
| コード長 | 249 bytes |
| コンパイル時間 | 403 ms |
| コンパイル使用メモリ | 81,792 KB |
| 実行使用メモリ | 85,888 KB |
| 最終ジャッジ日時 | 2024-11-08 16:48:19 |
| 合計ジャッジ時間 | 3,159 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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')