5 1 2 2 3 1 3 1 4 2 5 3 1 2 1 4 1 5
No Yes No The simple paths from Vertex $1$ to $2$ are $(1,2)$ and $(1,3,2)$, which are not unique, so the answer to the first query is `No`. The simple path from Vertex $1$ to $4$ is $(1,4)$, which is unique, so the answer to the second query is `Yes`. The simple paths from Vertex $1$ to $5$ are $(1,2,5)$ and $(1,3,2,5)$, which are not unique, so the answer to the third query is `No`.
10 3 5 5 7 4 8 2 9 1 2 7 9 1 6 4 10 2 5 2 10 10 1 8 6 9 8 10 6 8 3 10 3 9 1 10 5 8 1 10 7 8
Yes No Yes Yes No No Yes No Yes No
{
"problem": {
"name": "Well-defined Path Queries on a Namori",
"description": {
"content": "You are given a connected simple undirected graph $G$ with $N$ vertices numbered $1$ to $N$ and $N$ edges. The $i$\\-th edge connects Vertex $u_i$ and Vertex $v_i$ bidirectionally. Answer the following",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc266_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a connected simple undirected graph $G$ with $N$ vertices numbered $1$ to $N$ and $N$ edges. The $i$\\-th edge connects Vertex $u_i$ and Vertex $v_i$ bidirectionally.\nAnswer the following...",
"is_translate": false,
"language": "English"
}
]
}