CF350E Wrong Floyd
Description
Valera conducts experiments with algorithms that search for shortest paths. He has recently studied the Floyd's algorithm, so it's time to work with it.
Valera's already written the code that counts the shortest distance between any pair of vertexes in a non-directed connected graph from $ n $ vertexes and $ m $ edges, containing no loops and multiple edges. Besides, Valera's decided to mark part of the vertexes. He's marked exactly $ k $ vertexes $ a_{1},a_{2},...,a_{k} $ .
Valera's code is given below.
```
ans[i][j] // the shortest distance for a pair of vertexes i,j
a[i] // vertexes, marked by Valera
for(i = 1; i
Input Format
N/A
Output Format
N/A