5 10 2 0 10 2 1 10 2 2 10 2 3 10 2 4
1 3 4 2 0 The tree for $N=10$ is shown in the following figure.  Here, * There is $1$ vertex, $2$, whose distance from vertex $2$ is $0$. * There are $3$ vertices, $1,4,5$, whose distance from vertex $2$ is $1$. * There are $4$ vertices, $3,8,9,10$, whose distance from vertex $2$ is $2$. * There are $2$ vertices, $6,7$, whose distance from vertex $2$ is $3$. * There are no vertices whose distance from vertex $2$ is $4$.
10 822981260158260522 52 20 760713016476190629 2314654 57 1312150450968417 1132551176249851 7 1000000000000000000 1083770654 79 234122432773361868 170290518806790 23 536187734191890310 61862 14 594688604155374934 53288633578 39 1000000000000000000 120160810 78 89013034180999835 14853481725739 94 463213054346948152 825589 73
1556480 140703128616960 8 17732923532771328 65536 24576 2147483640 33776997205278720 7881299347898368 27021597764222976
{
"problem": {
"name": "Complete Binary Tree",
"description": {
"content": "There is a tree with $N$ vertices numbered $1$ to $N$. For each $i\\ (2 \\leq i \\leq N)$, there is an edge connecting vertex $i$ and vertex $\\lfloor \\frac{i}{2} \\rfloor$. There are no other edges. In th",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc321_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There is a tree with $N$ vertices numbered $1$ to $N$. For each $i\\ (2 \\leq i \\leq N)$, there is an edge connecting vertex $i$ and vertex $\\lfloor \\frac{i}{2} \\rfloor$. There are no other edges.\nIn th...",
"is_translate": false,
"language": "English"
}
]
}