B - The Baseball Team

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

Input

Output

Sample test(s)

Input
7 2 54 58 57 55 52 53 55 1 6 4 7
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
3 0
--- Showing first 30 lines (click "Copy" to get full content) ---