Olympiad
222D1900· candidate master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5 21 1 1 1 11 1 1 1 1
Output
1 5
Sample 2of 2
Input
6 74 3 5 6 4 48 6 0 4 3 4
Output
1 5
58%
222D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
5 21 1 1 1 11 1 1 1 1
1 5
6 74 3 5 6 4 48 6 0 4 3 4
1 5