Square Subsets
895C2000· candidate master4s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
41 1 1 1
Output
15
Sample 2of 3
Input
42 2 2 2
Output
7
Sample 3of 3
Input
51 2 4 5 8
Output
7
58%
895C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
41 1 1 1
15
42 2 2 2
7
51 2 4 5 8
7