cf/mirror

Turtle Puzzle: Rearrange and Negate

CF
1933A800· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
8
3
-2 3 -3
1
0
2
0 1
1
-99
4
10 -2 -3 7
5
-1 -2 -3 -4 -5
6
-41 22 -69 73 -15 -50
12
1 2 3 4 5 6 7 8 9 10 11 12
Output
8
0
1
99
22
15
270
78
1933A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)