cf/mirror

Squares

CF
1495F3300· legendary gm2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3 2
2 1 3
10 -5 4
3 -2 3
1
2
Output
6
8
Sample 2of 2
Input
5 4
2 1 5 3 4
6 -5 3 -10 -1
0 3 2 7 2
1
2
3
2
Output
-8
-7
-7
-8
1495F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…