6 6 3 6 1 3 5 6 2 5 1 2 1 6
3 2 3 6
2 1 5
2 1 6
0
2 2 6
3 1 3 5
The cities directly connected to city $1$ are city $2$, city $3$, and city $6$. Thus, we have $d_1 = 3, a_{1, 1} = 2, a_{1, 2} = 3, a_{1, 3} = 6$, so you should print $3, 2, 3, 6$ in the first line in this order, separated by spaces.
Note that $a_{i, 1}, \dots, a_{i, d_i}$ must be in ascending order. For instance, it is unacceptable to print $3, 3, 2, 6$ in the first line in this order.5 10 1 2 1 3 1 4 1 5 2 3 2 4 2 5 3 4 3 5 4 5
4 2 3 4 5 4 1 3 4 5 4 1 2 4 5 4 1 2 3 5 4 1 2 3 4
{
"problem": {
"name": "Adjacency List",
"description": {
"content": "There are $N$ cities numbered $1, \\dots, N$, and $M$ roads connecting cities. The $i$\\-th road $(1 \\leq i \\leq M)$ connects city $A_i$ and city $B_i$. Print $N$ lines as follows. * Let $d_i$ be t",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc276_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ cities numbered $1, \\dots, N$, and $M$ roads connecting cities. \nThe $i$\\-th road $(1 \\leq i \\leq M)$ connects city $A_i$ and city $B_i$.\nPrint $N$ lines as follows.\n\n* Let $d_i$ be t...",
"is_translate": false,
"language": "English"
}
]
}