Pavel and Triangles
1119E1900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
51 2 2 2 2
Output
3
Sample 2of 3
Input
31 1 1
Output
0
Sample 3of 3
Input
33 3 3
Output
3
58%
1119E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
51 2 2 2 2
3
31 1 1
0
33 3 3
3