Rhombus
263E2500· grandmaster3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
4 4 21 2 3 41 1 1 12 2 2 24 3 2 1
Output
3 2
Sample 2of 2
Input
5 7 38 2 3 4 2 3 33 4 6 2 3 4 68 7 6 8 4 5 71 2 3 2 1 3 24 5 3 2 1 2 1
Output
3 3
58%
263E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)