M - Minimize the Greatest Value

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

Input

Output

Sample test(s)

Input
10 10 1234567891
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
9
--- Showing first 30 lines (click "Copy" to get full content) ---
Input
6 3 123456
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
34
--- Showing first 30 lines (click "Copy" to get full content) ---

Notes