M - Minimum Euclidean Distance

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

Input

Output

Sample test(s)

Input
4 2 1 4 4 1 2 6 3
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
2
--- Showing first 30 lines (click "Copy" to get full content) ---