L - AI robots

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

Input

Output

Sample test(s)

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

Notes