3 2 1 2 3 2 3 2
25 The triples $s,t,k$ such that $f(s,t,k) \neq 0$ are as follows. * For $k = 1$: $f(1,2,1) = 3, f(2,3,1) = 2$. * For $k = 2$: $f(1,2,2) = 3, f(2,3,2) = 2, f(1,3,2) = 5$. * For $k = 3$: $f(1,2,3) = 3, f(2,3,3) = 2, f(1,3,3) = 5$.
3 0
0 We have $f(s,t,k) = 0$ for all $s,t,k$.
5 20 1 2 6 1 3 10 1 4 4 1 5 1 2 1 5 2 3 9 2 4 8 2 5 6 3 1 5 3 2 1 3 4 7 3 5 9 4 1 4 4 2 6 4 3 4 4 5 8 5 1 2 5 2 5 5 3 6 5 4 5
517
{
"problem": {
"name": "Shortest Path Queries 2",
"description": {
"content": "There are $N$ cities and $M$ roads in the Kingdom of Takahashi. The cities are numbered $1$ through $N$, and the roads are numbered $1$ through $M$. Road $i$ is a **one-way** road that leads from City",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc208_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ cities and $M$ roads in the Kingdom of Takahashi.\nThe cities are numbered $1$ through $N$, and the roads are numbered $1$ through $M$. Road $i$ is a **one-way** road that leads from City...",
"is_translate": false,
"language": "English"
}
]
}