cf/mirror

Squares

CF
263B900· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4 3
5 1 3 4
Output
2 1
Sample 2of 3
Input
3 1
2 4 1
Output
4 0
Sample 3of 3
Input
4 50
5 1 10 2
Output
-1
263B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)