D - Leuret Abduction

Languages: C++, Java, Python, Kotlin
Time & Memory limits: (details)

Input

Output

Sample test(s)

Input
2 1 1 1 2 2 1
Output
0.71 45.00
Input
5 10 4 0 3 0 8 3 0 4 0 6 2
Output
4.47 270.00
Input
4 10 10 5 10 10 5 14 13 13 14
Output
5.00 0.00

Hints