cf/mirror

King's Problem?

CF
30D2600· international gm3s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3 1
0 1 2 1
1
Output
3.41421356237309490000
Sample 2of 3
Input
3 1
1 0 2 1
1
Output
3.82842712474619030000
Sample 3of 3
Input
4 5
0 5 -1 -5 2
3
Output
14.24264068711928400000
30D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)