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
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
0.71 45.00
--- Showing first 30 lines (click "Copy" to get full content) ---
Input
5 10 4 0 3 0 8 3 0 4 0 6 2
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
4.47 270.00
--- Showing first 30 lines (click "Copy" to get full content) ---
Input
4 10 10 5 10 10 5 14 13 13 14
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
5.00 0.00
--- Showing first 30 lines (click "Copy" to get full content) ---

Notes