Maximum Balanced Circle
1157F2000· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
74 3 5 1 2 2 1
Output
52 1 1 2 3
Sample 2of 4
Input
53 7 5 1 5
Output
25 5
Sample 3of 4
Input
35 1 4
Output
24 5
Sample 4of 4
Input
72 2 3 2 1 2 2
Output
71 2 2 2 2 3 2
58%
1157F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)