5 6 3 1 2 2 2 3 3 1 3 6 2 4 5 4 5 9 3 5 8 1 3 1 3 4 7 3 5 7
Yes No Yes Below, let $(u,v,w)$ denote an undirected edge that connects Vertex $u$ and Vertex $v$ and has the weight of $w$. Here is an illustration of $G$:  For example, Query $1$ considers the graph $G_1$ obtained by adding $e_1 = (1,3,1)$ to $G$. The minimum spanning tree $T_1$ of $G_1$ has the edge set $\lbrace (1,2,2),(1,3,1),(2,4,5),(3,5,8) \rbrace$, which contains $e_1$, so `Yes` should be printed.
2 3 2 1 2 100 1 2 1000000000 1 1 1 1 2 2 1 1 5
Yes No
{
"problem": {
"name": "MST + 1",
"description": {
"content": "Given is a weighted undirected connected graph $G$ with $N$ vertices and $M$ edges, which may contain self-loops and multi-edges. The vertices are labeled as Vertex $1$, Vertex $2$, $\\dots$, Vertex ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 4000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc235_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Given is a weighted undirected connected graph $G$ with $N$ vertices and $M$ edges, which may contain self-loops and multi-edges. \nThe vertices are labeled as Vertex $1$, Vertex $2$, $\\dots$, Vertex ...",
"is_translate": false,
"language": "English"
}
]
}