Skip to content

Instantly share code, notes, and snippets.

@bpeterso2000
Last active August 22, 2017 22:41
Show Gist options
  • Save bpeterso2000/43198d3e2d3653eb918d7a94edc73310 to your computer and use it in GitHub Desktop.
Save bpeterso2000/43198d3e2d3653eb918d7a94edc73310 to your computer and use it in GitHub Desktop.
from random import randint
# --- Base Solution ---
def base_sum_diags(n, rows):
ldiag = [row[i] for i, row in enumerate(rows)]
rdiag = [list(reversed(row))[i] for i, row in enumerate(rows)]
print(ldiag)
print(rdiag)
return abs(sum(ldiag) - sum(rdiag))
def base_parse_input(text):
lines = text.splitlines()
n, lines = int(lines[0]), lines[1:]
rows = [[int(col) for col in row.split()] for row in lines]
return n, rows
def base(text):
n, rows = base_parse_input(text)
return base_sum_diags(n, rows)
# --- My Solution ---
def sum_diags(n, cells):
ldiag, rdiag = cells[::n+1], cells[n-1:-1:n-1]
print(ldiag)
print(rdiag)
return abs(sum(ldiag) - sum(rdiag))
def parse_input(text):
cells = [int(i) for i in text.split()]
return cells[0], cells[1:]
def main(text):
n, cells = parse_input(text)
return sum_diags(n, cells)
def get_matrix(n):
return ' '.join('{:+4d}'.format(randint(-100, 100)) for i in range(n))
# Simulation: Base Solution vs. My Solution
for n in range(2, 120):
text = str(n) + '\n'
text += '\n'.join(get_matrix(n) for i in range(n))
print('TEST CASE: {}\n{}'.format(n, '-' * 40))
print(text)
print('--- BASE SOLUTION ---')
result1 = base(text)
print('--- MY SOLUTION ---')
result2 = main(text)
print('{} == {}'.format(result1, result2))
assert result1 == result2
print('Worked.')
TEST CASE: 2
----------------------------------------
2
+53 -7
-66 +4
--- BASE SOLUTION ---
[53, 4]
[-7, -66]
--- MY SOLUTION ---
[53, 4]
[-7, -66]
130 == 130
Worked.
TEST CASE: 3
----------------------------------------
3
+8 +49 +38
-1 -39 +60
+54 +3 +60
--- BASE SOLUTION ---
[8, -39, 60]
[38, -39, 54]
--- MY SOLUTION ---
[8, -39, 60]
[38, -39, 54]
24 == 24
Worked.
TEST CASE: 4
----------------------------------------
4
+76 -30 +41 -56
+40 -78 -64 +32
+68 +77 -97 -11
+11 -15 +37 +87
--- BASE SOLUTION ---
[76, -78, -97, 87]
[-56, -64, 77, 11]
--- MY SOLUTION ---
[76, -78, -97, 87]
[-56, -64, 77, 11]
20 == 20
Worked.
TEST CASE: 5
----------------------------------------
5
-40 +86 -57 +26 +74
-69 +16 +35 +47 -82
-47 -75 +33 +38 -56
+61 -84 +24 +81 +23
-43 +80 -42 +28 +77
--- BASE SOLUTION ---
[-40, 16, 33, 81, 77]
[74, 47, 33, -84, -43]
--- MY SOLUTION ---
[-40, 16, 33, 81, 77]
[74, 47, 33, -84, -43]
140 == 140
Worked.
TEST CASE: 6
----------------------------------------
6
+45 +89 +95 -74 -33 -62
+60 -73 -73 -70 -67 +80
+94 +91 -73 -52 -99 +13
-25 +48 -58 +62 -67 +8
-54 +24 -1 +62 -73 +73
-33 +53 +16 -41 +16 +62
--- BASE SOLUTION ---
[45, -73, -73, 62, -73, 62]
[-62, -67, -52, -58, 24, -33]
--- MY SOLUTION ---
[45, -73, -73, 62, -73, 62]
[-62, -67, -52, -58, 24, -33]
198 == 198
Worked.
TEST CASE: 7
----------------------------------------
7
-96 -93 +5 +35 +21 +46 +5
+58 -19 -26 -49 +46 +49 +21
+94 +39 +88 +18 -83 +65 +18
+66 -8 -87 +80 +93 -18 +41
+41 -24 +6 +84 +27 +62 +3
-45 -90 -23 -52 +75 +62 -52
+46 -52 -72 -27 +52 +29 +27
--- BASE SOLUTION ---
[-96, -19, 88, 80, 27, 62, 27]
[5, 49, -83, 80, 6, -90, 46]
--- MY SOLUTION ---
[-96, -19, 88, 80, 27, 62, 27]
[5, 49, -83, 80, 6, -90, 46]
156 == 156
Worked.
TEST CASE: 8
----------------------------------------
8
+57 +1 +64 -14 -86 -98 -89 -10
+79 -72 -6 -74 -77 -65 +73 -78
-60 +2 +2 -58 -29 -46 +91 -48
+12 -35 +14 -68 -69 -75 -40 +70
-35 +43 +4 +88 +18 -30 +56 -9
+16 -21 +70 +27 -27 -73 -39 +20
-98 -83 -92 +46 +39 +67 -50 +88
+86 -73 +81 -76 +59 +86 +63 +62
--- BASE SOLUTION ---
[57, -72, 2, -68, 18, -73, -50, 62]
[-10, 73, -46, -69, 88, 70, -83, 86]
--- MY SOLUTION ---
[57, -72, 2, -68, 18, -73, -50, 62]
[-10, 73, -46, -69, 88, 70, -83, 86]
233 == 233
Worked.
TEST CASE: 9
----------------------------------------
9
-9 -79 -7 -76 -76 -61 -98 -72 -84
-11 -48 -81 +3 -23 +8 -37 -67 -21
+55 -89 -5 -15 -83 +47 +76 +24 -30
+75 +69 +70 -67 -43 +32 +45 +35 -1
+65 +26 +24 -53 -83 -9 +57 -18 -56
-66 +64 +71 +66 -1 -44 -37 -80 +90
-94 -99 -8 +98 -60 -10 +77 -76 -8
-81 +60 +2 +69 -15 +31 -43 -46 -8
-49 -84 -56 -84 -40 +85 +68 -98 +32
--- BASE SOLUTION ---
[-9, -48, -5, -67, -83, -44, 77, -46, 32]
[-84, -67, 76, 32, -83, 66, -8, 60, -49]
--- MY SOLUTION ---
[-9, -48, -5, -67, -83, -44, 77, -46, 32]
[-84, -67, 76, 32, -83, 66, -8, 60, -49]
136 == 136
Worked.
TEST CASE: 10
----------------------------------------
10
+2 -51 -55 +22 -13 -43 +28 -49 +64 -29
-27 +76 -16 +46 +40 -42 -22 -40 -18 -59
+28 +49 -73 +45 +31 +96 +34 -4 +81 -32
+100 -43 -73 -45 +47 +91 -94 +85 +1 -79
+23 +96 -78 +65 +69 +62 +22 -35 +71 -27
+90 +78 +89 +2 +57 -2 +76 +84 -84 +73
-44 +45 -48 -23 +54 +20 +16 -64 -64 -27
-58 -11 +54 +86 +58 -34 +24 +26 -21 +7
+6 -12 -96 -44 -24 +34 -52 -60 +18 -75
-6 +30 -53 -39 +44 +76 +82 -1 -46 -5
--- BASE SOLUTION ---
[2, 76, -73, -45, 69, -2, 16, 26, 18, -5]
[-29, -18, -4, -94, 62, 57, -23, 54, -12, -6]
--- MY SOLUTION ---
[2, 76, -73, -45, 69, -2, 16, 26, 18, -5]
[-29, -18, -4, -94, 62, 57, -23, 54, -12, -6]
95 == 95
Worked.
TEST CASE: 11
----------------------------------------
11
-89 -94 -50 +4 +47 -48 -50 +94 -68 -96 -79
-2 +89 -68 -33 -66 +35 -51 -6 +44 -100 -97
+29 -63 +9 -57 -7 +91 +7 -27 +77 -12 -63
-21 -31 -23 -11 -3 +56 -39 -31 +26 +97 -27
-95 +88 -82 +19 +10 -88 -54 +14 +17 -7 +72
-4 -47 -21 +90 +57 +58 +0 -2 +7 +36 -90
-64 +3 +61 -62 +77 -40 +79 +32 -29 -7 +11
-2 +52 -6 +85 -30 +64 +20 +60 -20 +45 -5
-10 +49 -32 -25 +34 -96 -16 -61 +79 +72 -63
+66 +31 +39 -54 -84 +25 +57 +74 -82 -24 -94
-18 +13 -69 -84 -93 -70 -17 -94 -100 +49 +9
--- BASE SOLUTION ---
[-89, 89, 9, -11, 10, 58, 79, 60, 79, -24, 9]
[-79, -100, 77, -31, -54, 58, 77, 85, -32, 31, -18]
--- MY SOLUTION ---
[-89, 89, 9, -11, 10, 58, 79, 60, 79, -24, 9]
[-79, -100, 77, -31, -54, 58, 77, 85, -32, 31, -18]
255 == 255
Worked.
TEST CASE: 12
----------------------------------------
12
+45 -49 -34 -100 -71 +65 +32 -18 +11 -49 -45 +78
+38 -77 +97 -11 -44 +8 +87 +6 +62 -73 +80 +52
+35 -75 +19 +2 +90 -86 -85 -11 +60 -69 +4 +27
-30 +90 -93 +66 -74 +6 -93 -95 +39 +7 +90 +58
-95 -92 -6 +21 +28 -93 -93 -79 +80 +82 +98 -92
+80 +5 +43 -42 -7 +85 -86 +30 +16 -99 +67 +79
-6 -20 -89 -43 -58 +78 -13 +16 +64 +95 +49 -67
+69 -49 +38 +33 +57 +93 +28 -98 +79 +49 +1 -56
-60 +10 -40 -24 +94 -32 -82 +100 +27 -3 -11 +17
+85 +12 -91 +60 +42 +29 -54 -69 +44 +19 +34 +6
-39 -28 +96 +27 -97 -74 +24 +95 +87 -57 -100 +97
-62 +87 +9 +78 +76 -96 +37 -79 -44 -25 +13 +27
--- BASE SOLUTION ---
[45, -77, 19, 66, 28, 85, -13, -98, 27, 19, -100, 27]
[78, 80, -69, 39, -79, -86, 78, 57, -24, -91, -28, -62]
--- MY SOLUTION ---
[45, -77, 19, 66, 28, 85, -13, -98, 27, 19, -100, 27]
[78, 80, -69, 39, -79, -86, 78, 57, -24, -91, -28, -62]
135 == 135
Worked.
TEST CASE: 13
----------------------------------------
13
+27 +73 +13 -38 +10 +7 +44 +81 -82 +20 -20 -82 -34
-87 -20 +10 -29 +2 -78 +49 -86 -26 +0 -21 -3 -30
-78 +74 -40 -83 -38 +38 +32 -37 +17 +87 -93 -81 -2
+37 +3 -65 +49 +62 -68 -80 -38 -70 +100 -89 +4 +15
-9 +31 +33 +51 +72 -57 -62 -45 +63 +97 -81 +14 -24
+66 +65 -98 -22 +80 +52 -85 +27 +47 -9 +13 +14 -15
+49 +71 -23 -38 +64 -32 +68 -22 -38 +52 -49 +3 +54
-97 -52 -1 +43 -21 +38 +25 +37 +75 +25 +38 +63 +9
-91 +61 -64 +32 +2 -15 +0 +89 -99 -70 -2 +33 -58
-84 +29 -24 +86 -59 -53 +44 -57 +62 +71 +59 +4 -11
-100 +46 +2 +34 -5 +15 +49 +24 +30 +31 +94 +85 +82
+27 -67 +46 +12 +9 -40 -63 +32 -37 +45 +87 +58 -71
+70 -30 -46 +50 -86 -1 -87 -43 -27 +25 -4 -66 -22
--- BASE SOLUTION ---
[27, -20, -40, 49, 72, 52, 68, 37, -99, 71, 94, 58, -22]
[-34, -3, -93, 100, 63, 27, 68, 38, 2, 86, 2, -67, 70]
--- MY SOLUTION ---
[27, -20, -40, 49, 72, 52, 68, 37, -99, 71, 94, 58, -22]
[-34, -3, -93, 100, 63, 27, 68, 38, 2, 86, 2, -67, 70]
88 == 88
Worked.
TEST CASE: 14
----------------------------------------
14
+68 +44 -73 +79 +65 +59 -8 -77 -25 +4 +88 -48 +5 +67
-5 +36 -39 +47 +93 +99 +77 +7 +95 -65 +49 -38 +85 -85
-43 +50 +49 +77 -59 +61 +44 -49 -26 -5 -92 -78 -14 -39
+97 +100 +82 -17 +0 +44 -64 +45 +98 -46 +35 -50 -100 +65
+67 +92 +13 +11 +2 -44 +74 +96 -75 -69 -48 -73 -82 -5
-55 -58 +12 -17 +98 +38 +72 -39 +33 +61 +68 +75 +80 +8
-45 +1 -44 +2 +76 -95 +52 +67 -8 -39 -75 +26 -3 +37
-13 +69 +96 +84 -60 +76 +16 -76 -22 -99 -66 -78 +7 +62
+44 +43 -97 +51 +41 -74 +17 +98 +29 -68 +15 -53 -31 -16
-41 +42 -15 +0 -18 -11 -56 +36 +93 -57 -73 +79 +49 -83
-69 +51 -51 -38 +28 +23 +19 +75 +55 -1 +47 -93 -62 +14
-7 -52 +89 -96 -10 -93 -62 -34 -79 +7 +23 +14 +17 +41
+55 +58 -14 +15 -4 +88 -21 +19 -55 +29 -81 -27 +32 -63
-23 -58 +94 +92 -35 -2 +23 +21 +58 -49 -7 -38 -33 -84
--- BASE SOLUTION ---
[68, 36, 49, -17, 2, 38, 52, -76, 29, -57, 47, 14, 32, -84]
[67, 85, -78, 35, -69, 33, 67, 16, -74, -18, -38, 89, 58, -23]
--- MY SOLUTION ---
[68, 36, 49, -17, 2, 38, 52, -76, 29, -57, 47, 14, 32, -84]
[67, 85, -78, 35, -69, 33, 67, 16, -74, -18, -38, 89, 58, -23]
17 == 17
Worked.
TEST CASE: 15
----------------------------------------
15
+75 +73 -87 +54 +27 +9 +37 +85 -82 -3 +76 -89 -17 -68 +79
+18 -42 +89 -19 +54 +86 +59 +26 +8 +38 +61 -11 +68 +42 -30
-45 -68 -49 +39 +36 -52 +62 +53 +83 -86 -57 -24 +29 +86 +57
-36 +5 +50 -17 -74 +88 -50 -56 +43 +92 -11 -64 +50 -39 -68
+17 +48 +11 -12 -8 +15 -40 -43 +6 -25 +17 -31 +47 -90 -35
-94 -37 -100 -87 -97 +32 -49 -44 +55 -10 +78 -67 -13 -19 -24
-74 -87 -76 -20 -69 +69 -38 -97 -32 +25 -63 -7 +86 +29 -25
+18 -31 -30 -16 -61 +49 -32 +70 -48 +90 +93 +35 -40 +60 -54
+67 +6 -67 +35 +11 -33 -56 +58 +100 -20 +14 -78 +12 -83 +0
+71 +70 -11 +5 -41 -61 +78 -97 -40 +31 -93 +37 -70 +78 -86
-94 -72 -28 +91 -22 +31 -52 -52 -39 +84 +53 -44 -74 +14 +93
+61 -70 +59 -90 +32 -70 -34 -28 +2 +53 +2 -55 +3 +22 +98
-62 +56 -42 -9 -55 +25 -65 -6 +84 -22 +80 +49 +24 +21 -60
-61 +68 -75 +1 +7 -58 -57 -8 +100 -55 +19 +92 +45 +68 -17
-33 +98 +44 -47 +92 +83 +32 +79 +32 -69 -78 +39 +42 +29 -18
--- BASE SOLUTION ---
[75, -42, -49, -17, -8, 32, -38, 70, 100, 31, 53, -55, 24, 68, -18]
[79, 42, 29, -64, 17, -10, -32, 70, -56, -61, -22, -90, -42, 68, -33]
--- MY SOLUTION ---
[75, -42, -49, -17, -8, 32, -38, 70, 100, 31, 53, -55, 24, 68, -18]
[79, 42, 29, -64, 17, -10, -32, 70, -56, -61, -22, -90, -42, 68, -33]
331 == 331
Worked.
TEST CASE: 16
----------------------------------------
16
+10 -33 +11 -32 -16 -31 -27 -37 -69 -33 +45 +82 +56 +97 +49 +59
+96 -19 +32 -96 -63 -77 +81 -73 +54 +33 +84 -84 +56 +7 +23 +52
-73 +18 +86 +21 -41 +3 -49 -35 +86 -45 -79 -99 -78 +31 +31 +0
+79 -10 -83 -69 -84 -36 +44 +49 -85 +4 -17 +73 -74 +45 -52 +31
-21 +48 +100 -36 +80 -5 +28 +70 +20 +33 +67 +45 -36 -76 -48 -36
-36 +78 -83 -36 +15 -79 -80 +88 +58 +8 -31 +23 +15 +46 +100 +84
-58 -29 -32 +40 -51 +51 +76 -73 +42 -48 +68 +16 +81 +96 +4 -77
-96 +46 -42 -56 +18 -49 -35 -31 +37 +1 +59 -39 +23 -35 -29 -59
-76 +44 -62 -7 +42 -77 -87 -38 -14 +86 -11 -53 -92 +49 -67 +7
+30 +53 -90 +1 +45 -19 +10 +82 +99 +9 -69 +75 +68 +87 +19 +9
-3 +45 -92 -72 -53 +74 +22 -53 +10 -4 -37 +45 -10 +49 +10 +34
-17 -36 -10 +81 +4 +46 +15 +78 -89 +38 +93 -11 +85 +71 +50 -67
-63 -48 -16 +47 +12 +84 +60 -7 +44 -14 -93 -50 +43 -70 -61 +32
+86 +43 +50 +20 +99 -58 -53 -28 +62 -77 +15 +55 +32 +74 -16 +69
-34 -67 -1 -29 +51 -80 -28 -32 +70 -55 +26 +94 -10 -25 -35 +94
+4 -74 -40 -24 +50 +54 -63 +35 -78 +31 +40 -79 -79 +61 +30 -25
--- BASE SOLUTION ---
[10, -19, 86, -69, 80, -79, 76, -31, -14, 9, -37, -11, 43, 74, -35, -25]
[59, 23, 31, -74, 45, -31, -48, 37, -38, 10, 74, 4, 47, 50, -67, 4]
--- MY SOLUTION ---
[10, -19, 86, -69, 80, -79, 76, -31, -14, 9, -37, -11, 43, 74, -35, -25]
[59, 23, 31, -74, 45, -31, -48, 37, -38, 10, 74, 4, 47, 50, -67, 4]
68 == 68
Worked.
TEST CASE: 17
----------------------------------------
17
+79 -80 +8 -54 -91 -3 -24 +61 +21 -11 -51 -18 +70 +61 -43 +73 -26
+78 +0 +69 +67 -90 -67 -72 +96 -28 +22 -38 +37 -15 +9 +73 -34 +12
+87 +22 -40 +28 +55 +83 +40 -59 +24 -53 -54 -36 -87 -36 -6 +13 +88
-81 +79 -28 -32 +6 +61 -85 -76 -35 -25 +13 -98 +24 -36 -72 -97 +35
-31 +61 +10 -86 -34 -4 -46 -73 -25 -74 -4 -40 -39 -85 -89 -41 -60
+95 +91 -65 -29 -99 +35 -66 +43 +10 +71 -59 +73 +22 +93 -35 -91 -28
+76 +56 +14 +87 -54 +71 +11 -83 -23 -22 -30 +36 -40 +53 -35 -94 -91
-32 +6 +34 -88 +36 -79 -45 -47 -39 +63 -16 -89 +29 -45 +53 -29 +19
-91 +0 -44 -20 +17 +48 -10 -51 -53 +60 +43 -50 +22 +79 +16 -87 -78
-77 -69 +72 -38 -78 -46 +3 -7 +77 -4 +95 -13 +32 +56 +27 -36 -31
+33 -93 -36 +34 -80 -53 -18 -62 +57 -27 +56 +94 +63 +47 -4 -67 -88
+99 -73 +77 -72 +21 +58 +99 +35 +86 +6 -17 -65 +84 -25 +29 +62 +99
+67 +23 +12 +2 +91 +70 -71 -45 +71 +14 +54 +100 -74 -67 +17 +40 +17
-24 +60 +77 -45 +21 +60 +71 +100 +14 +44 -3 +68 +48 -72 +63 +41 +0
+99 +50 -9 +40 -15 -77 -50 -8 -56 +93 +79 +65 +91 -48 -28 +67 -3
+33 +69 +35 -98 -10 -80 +40 -97 +72 +65 +40 +92 +45 +30 +82 -1 +83
-90 -9 +77 +99 -54 -61 -76 +20 +29 -50 -39 +76 -34 +87 +48 -18 -11
--- BASE SOLUTION ---
[79, 0, -40, -32, -34, 35, 11, -47, -53, -4, 56, -65, -74, -72, -28, -1, -11]
[-26, -34, -6, -36, -39, 73, -30, 63, -53, -7, -18, 58, 91, -45, -9, 69, -90]
--- MY SOLUTION ---
[79, 0, -40, -32, -34, 35, 11, -47, -53, -4, 56, -65, -74, -72, -28, -1, -11]
[-26, -34, -6, -36, -39, 73, -30, 63, -53, -7, -18, 58, 91, -45, -9, 69, -90]
241 == 241
Worked.
TEST CASE: 18
----------------------------------------
18
-30 +94 +98 -72 -53 +85 -70 -56 +52 +53 -7 +75 +14 +23 -80 +63 +53 -30
+34 +57 +33 +87 -62 -3 -55 -76 -92 -72 -37 -12 +75 -31 -52 +77 +63 -81
-41 -22 -44 +39 -10 +36 +63 -18 +31 -44 +27 -15 +29 -28 -63 +94 +87 +40
+70 +47 -97 -31 +45 +51 -6 +21 +89 -62 +56 +10 +85 +28 -42 +96 -65 -13
-40 -76 -93 -17 +83 -97 +86 +58 -65 +21 -60 +81 -9 -49 +24 -31 -13 +89
-54 +69 +56 +77 -5 -97 +91 +25 +58 -99 +17 +38 -70 +0 +15 +52 -8 +29
-84 +82 +66 +68 -55 +99 -27 -48 +51 +45 +7 -43 -15 -54 -40 +81 -35 -78
-73 -97 +83 -40 +8 -33 +74 +55 -59 -19 +0 +83 -94 +34 -37 -6 +31 +8
+100 +65 -3 -83 +35 +6 +0 +78 -98 -66 -14 -32 +58 +15 +75 +62 -70 +87
-15 +94 -78 -8 -82 -98 -15 -71 +23 +19 +10 -84 +15 -18 -1 -33 +36 +95
+22 +20 +53 +71 +20 +51 +95 -64 +89 -49 +42 +90 +34 -72 -44 -100 +16 -91
-66 +95 +84 +78 -51 +45 -89 -77 +14 -26 -91 +10 -45 +91 +25 +38 +50 +93
-8 -27 -18 -24 -87 +7 +99 -100 -98 -41 +70 +90 +61 +72 -54 -57 +99 +37
+18 +74 +14 -30 +64 -87 -91 +79 +9 +1 -11 -14 -37 -51 +53 -82 +56 +3
-78 -95 +88 +65 +28 +86 -6 +37 -3 +74 +84 +93 -61 -62 -60 +19 +53 -81
-34 +41 -16 +48 +44 -17 -80 -30 +99 +40 -90 -47 -23 -55 -90 +12 +89 +75
+92 +60 +21 -52 +19 +31 -70 -13 -58 +34 -71 -49 -52 -25 -86 -16 -59 +8
+61 +81 +20 +7 -96 +49 -80 -82 +4 +72 -3 -62 -78 -50 +65 -19 +98 -76
--- BASE SOLUTION ---
[-30, 57, -44, -31, 83, -97, -27, 55, -98, 19, 42, 10, 61, -51, -60, 12, -59, -76]
[-30, 63, 94, -42, -49, -70, -43, 0, -66, 23, -64, -89, 7, 64, 65, -16, 60, 61]
--- MY SOLUTION ---
[-30, 57, -44, -31, 83, -97, -27, 55, -98, 19, 42, 10, 61, -51, -60, 12, -59, -76]
[-30, 63, 94, -42, -49, -70, -43, 0, -66, 23, -64, -89, 7, 64, 65, -16, 60, 61]
202 == 202
Worked.
TEST CASE: 19
----------------------------------------
19
+36 +45 +58 +9 +75 -70 +43 +48 -71 +88 -40 +81 -84 +55 +83 +4 -27 -51 +70
-1 -28 -13 -14 -33 +80 -14 +75 +15 +87 -80 -88 -37 -31 -11 -10 -23 +88 +54
-44 +40 -56 +42 -41 +68 -40 +19 +43 -21 +10 +76 +86 +87 +11 +81 -76 -13 -58
+68 -15 +39 +19 +10 +0 -7 +32 -12 -83 +64 +69 -31 -15 -95 +81 +67 -93 +75
-63 +19 -89 +13 +43 -41 +9 +9 -7 +1 -14 +30 +93 -5 +37 +43 +58 +30 -14
+95 -55 -31 -85 +69 -52 +76 -55 -39 +37 -38 +45 -16 +58 -100 -19 -26 -89 +19
+35 +100 -86 -12 +13 +33 -22 +80 -1 -51 +15 +40 -57 +98 +89 +88 +84 -29 -68
+95 +7 -97 -97 -2 +81 +54 -25 -9 -73 +3 -87 -42 +83 -7 -10 +47 -72 -16
-96 -30 +99 -69 +20 -79 +99 -98 +55 -61 -81 +96 +22 +47 -10 +75 +47 +40 -12
+25 -48 -48 +100 -92 -28 +95 +95 -8 +99 +44 -66 -58 -92 -18 -27 -25 -82 -10
+73 -65 +87 -91 -95 +23 +86 -65 +50 -24 +23 +80 -44 -68 -8 +96 +65 +18 +8
+48 +82 +41 +92 +43 +43 +81 -99 -67 -44 +93 +28 +29 +72 -9 +100 -20 +22 +94
+98 -77 +99 +100 +80 +51 +45 -9 -58 +0 -29 -44 +42 +6 -76 -78 +49 +56 +25
-10 +62 +81 -97 -29 -69 -91 -26 -41 -45 -10 -49 -75 -55 +69 +78 -82 -90 -58
-19 +32 -82 +68 -86 +37 +4 -81 +38 -31 -7 +4 +44 -39 -49 +38 -92 +43 -70
-16 +55 +33 -5 -65 +92 +69 +26 +19 -68 -9 -44 +51 +14 +3 +18 -77 -75 -12
-57 -22 +32 -50 +98 -36 +30 +13 -41 +76 -53 +29 -22 +46 -13 -98 +41 +41 +56
+86 -68 -19 +14 +15 -30 -43 -99 -30 +55 -96 -22 -24 -95 -18 +14 +51 -11 -9
+60 +69 -4 +81 +23 +90 +3 -63 -94 +87 +85 -86 +63 -100 +15 -29 +54 -33 -91
--- BASE SOLUTION ---
[36, -28, -56, 19, 43, -52, -22, -25, 55, 99, 23, 28, 42, -55, -49, 18, 41, -11, -91]
[70, 88, -76, 81, 37, 58, -57, -87, -81, 99, 50, -99, 45, -69, -86, -5, 32, -68, 60]
--- MY SOLUTION ---
[36, -28, -56, 19, 43, -52, -22, -25, 55, 99, 23, 28, 42, -55, -49, 18, 41, -11, -91]
[70, 88, -76, 81, 37, 58, -57, -87, -81, 99, 50, -99, 45, -69, -86, -5, 32, -68, 60]
23 == 23
Worked.
TEST CASE: 20
----------------------------------------
20
-19 -87 -37 +68 +7 +59 +57 -36 +11 +83 +58 +39 -42 +57 -27 +53 -93 +68 +26 -1
-11 -3 -49 +75 -37 -47 -23 -75 -57 -58 -28 +77 +52 -24 -60 +18 -6 +85 -90 +61
-35 -59 -23 -88 -68 -42 +81 +72 -67 -90 -47 +31 +35 -41 -62 +45 -34 -62 -2 -68
-14 -95 -16 -1 +91 +27 -30 -8 +21 -92 -34 -2 +54 +3 -17 -36 +50 +76 -87 -74
-15 +14 +92 +60 +0 -7 +36 +86 +31 +84 -83 -9 -74 +91 -95 +72 +40 +9 +4 -98
+87 +85 -61 -62 -60 -77 -64 -4 -40 -88 +25 -74 -78 -38 +94 -14 -20 +41 +67 +29
+69 +56 -17 -60 +16 +78 +35 -60 -86 +96 -10 -97 +1 +93 +90 +95 -84 +59 -66 -15
+39 +25 -54 +28 +82 -50 -55 +78 -80 -53 +71 -21 -65 +82 -65 +75 +94 +54 +94 +91
-40 +20 -46 +1 -3 -26 +39 +42 -98 +83 -27 +49 +12 -16 -1 +38 +34 -56 +79 +68
-95 +30 +17 +11 +34 -61 +33 -73 -43 +4 +23 +49 -19 -92 -74 -31 -20 -34 +93 -4
-19 +89 +5 +8 +30 +59 -47 +35 +33 -94 -1 +90 +3 +3 -16 -76 +83 -63 -16 -95
+88 -36 +98 -20 -21 +15 +17 -65 -36 -12 +2 +17 +49 -21 -84 +26 -64 -11 -74 +64
+40 -77 +26 +95 -22 +84 -52 +36 -8 +24 +21 +60 -4 +13 +73 -38 -46 -54 -49 +29
+48 -93 +90 -88 -16 +37 -88 -35 +3 +67 +1 +82 +63 +53 -96 +66 -29 +33 +4 +36
-63 +57 +91 +20 -51 -62 -22 -12 -77 +9 +96 +23 +33 +11 +55 -16 +10 -66 -80 -89
-91 +38 +19 -31 +20 +80 +73 -99 -41 -36 -37 +77 +22 +43 +71 -25 -72 -53 -13 +20
+47 -47 +65 +11 -47 +44 +33 -7 +23 -80 -18 -30 -53 +41 -90 +20 +87 +35 -94 -47
-38 +68 -81 +5 +28 +91 +22 -74 -47 +76 -77 -9 -29 +9 +22 +0 +54 +36 +25 +47
-82 -5 -48 +4 -52 +51 +40 +70 -84 +62 +23 -75 -11 -25 +27 +75 -87 +73 -47 -46
+46 +19 -81 -67 +64 +74 +87 +44 +27 +54 -11 -29 +13 -54 +99 +97 +85 +37 -81 +78
--- BASE SOLUTION ---
[-19, -3, -23, -1, 0, -77, 35, 78, -98, 4, -1, 17, -4, 53, 55, -25, 87, 36, -47, 78]
[-1, -90, -62, 50, 72, 94, 93, -65, 49, 23, -94, -36, 36, -88, -62, 20, 11, -81, -5, 46]
--- MY SOLUTION ---
[-19, -3, -23, -1, 0, -77, 35, 78, -98, 4, -1, 17, -4, 53, 55, -25, 87, 36, -47, 78]
[-1, -90, -62, 50, 72, 94, 93, -65, 49, 23, -94, -36, 36, -88, -62, 20, 11, -81, -5, 46]
235 == 235
Worked.
TEST CASE: 21
----------------------------------------
21
-35 +47 +61 -13 -76 -69 +61 -6 -16 +51 +43 -77 +38 +37 +70 +40 -85 -86 -3 -21 +73
-68 -5 -49 -85 -33 +7 -45 +27 -73 -39 +64 -54 -70 +43 -31 +21 -44 -66 -37 +75 -56
+19 -51 +39 -72 +88 -54 +72 -71 +50 -37 +68 +56 +85 +56 -87 +31 -7 +34 +52 -3 -2
+84 -29 -50 -68 -31 +25 -9 +64 -59 +96 -43 +99 -61 -93 +22 -86 +82 +70 -31 +98 -61
-27 -10 +14 -23 +4 -65 +60 -51 +7 +90 -56 -100 +39 +11 +55 +8 +24 -35 -28 -45 +79
+30 +38 +90 -19 +93 -52 +61 +3 +100 +62 -96 +67 +83 +62 +32 -9 +4 +58 -96 -69 -28
+34 -95 +87 -38 -98 +61 +3 -4 +92 +97 -31 -85 -98 +4 -98 +0 -88 +60 -39 +92 -32
-48 +93 -29 +51 +100 -44 -43 -50 -93 -83 +47 +11 -22 +49 +40 +98 -59 +86 -100 -84 +25
+30 -88 -67 -65 -100 -39 +45 -6 +17 -45 +92 +8 +44 +20 +20 +39 +48 -93 -98 -42 +35
-64 -22 -45 +100 -63 -80 +53 -30 +23 -27 +9 -15 -18 +95 +18 -26 +26 -44 +26 +47 +75
-38 -95 -67 +81 +28 -49 -62 +86 +89 +78 -72 -11 +69 +77 -2 -42 -84 -56 -42 +79 -77
-36 -66 +42 +35 -15 +17 -2 +58 +48 -96 +4 -55 -50 -33 -35 +21 +79 -2 +58 +64 -44
+100 -28 +95 -54 -9 +61 +47 +86 -42 -49 +19 +94 +35 -23 -21 -71 -75 +87 -77 +60 +37
-46 +86 -69 -83 +70 -81 -87 -84 +100 -36 +80 +37 +35 +24 +63 +93 -14 -6 +28 -33 -97
-73 -41 -38 +52 -99 +40 -29 +42 +14 -66 -55 +24 -52 -23 -16 -67 +8 +100 +22 -10 -48
+68 -63 -69 +49 -28 +89 -15 +17 +65 -74 +45 +17 +32 +97 +1 -62 -55 +85 -8 +6 +80
-49 +98 -8 -29 +9 +12 -92 -15 +70 +32 +51 +41 -78 -18 +76 +29 -59 -17 -94 +62 +10
+10 +45 +43 -64 +2 -33 +17 -98 -49 +89 -95 -58 -37 -81 -54 -1 +21 +34 +49 +73 +27
-98 -99 -28 -69 -31 +71 +75 -69 +73 -49 +35 -48 +51 -3 -33 -52 +81 +26 +2 +83 -19
-52 +85 -1 -90 -23 +33 +6 +5 -28 -57 +1 -82 +37 +18 +42 -47 -80 -51 +95 +60 +78
-6 -96 +54 +59 -74 +99 -79 -35 -58 +34 -64 -26 +46 -37 +43 -99 +2 +55 -75 -31 -54
--- BASE SOLUTION ---
[-35, -5, 39, -68, 4, -52, 3, -50, 17, -27, -72, -55, 35, 24, -16, -62, -59, 34, 2, 60, -54]
[73, 75, 52, 70, 24, -9, -98, 49, 44, -15, -72, -96, -42, -84, -29, 89, 9, -64, -28, 85, -6]
--- MY SOLUTION ---
[-35, -5, 39, -68, 4, -52, 3, -50, 17, -27, -72, -55, 35, 24, -16, -62, -59, 34, 2, 60, -54]
[73, 75, 52, 70, 24, -9, -98, 49, 44, -15, -72, -96, -42, -84, -29, 89, 9, -64, -28, 85, -6]
364 == 364
Worked.
TEST CASE: 22
----------------------------------------
22
-16 +62 -98 +93 +91 -85 -14 -55 -40 +42 +93 -61 -14 +35 -31 -38 -28 +46 +6 +76 +61 -90
+55 -4 -46 -40 +77 -89 +32 +22 +38 -18 -17 -98 +15 -45 -45 -52 -71 -33 +74 +64 +100 -80
+51 +16 +27 +30 +0 +31 +71 -39 +25 +96 +50 +57 +14 -71 -35 +10 -7 +86 -60 +53 +2 -99
-96 +93 -65 -3 +90 +50 +63 -32 +89 +6 +25 -25 -81 +58 -61 -60 -87 +89 +64 -76 +12 +88
+12 +81 -80 +10 +57 -75 +91 +95 -52 -17 -50 +53 -32 +53 -31 -60 +29 +77 -56 +97 +34 +35
-37 -3 +69 +75 -36 -94 -52 +33 -56 -54 +6 +66 +88 +84 -9 +32 +36 +100 -77 -97 +27 -50
-17 -12 -2 -15 +48 -12 +60 -11 +4 -8 -19 -62 -2 -6 -97 -30 +52 +55 -9 -62 +61 -58
-43 +42 +15 +7 +13 -27 +67 -68 +40 +69 +40 -59 -34 +74 +8 -77 +12 +57 -89 +48 +72 -80
-65 -69 +50 -89 -83 -52 -37 +45 +47 +94 +74 +74 -57 -43 -81 -19 -65 +71 +26 -70 +16 -86
-52 -16 -88 +75 -64 +84 -68 +10 +16 -48 +52 +88 -52 +29 -4 +73 +57 +39 -73 +55 -61 -90
-51 -49 -72 -50 +18 +66 +37 -61 +22 +91 +25 -64 -51 +73 -85 +53 -97 -72 +87 +49 +96 +80
-40 -52 -36 -56 -94 -44 -10 +91 +63 +18 -66 -72 -99 +39 +50 -17 +68 -33 +37 +64 -97 -9
+27 -15 +46 +100 +3 -8 -52 +93 +29 +14 +14 -59 -78 -55 +76 -27 +52 +82 -16 -22 -54 +59
+60 +53 +3 -78 +23 +16 -70 -81 -11 -94 -92 +40 +11 +69 -50 +11 -31 -91 -50 +4 -51 +46
+44 +29 -56 -30 -45 +70 +62 -54 +82 -9 -21 +51 -30 -17 +45 +31 -39 -7 +17 +30 -10 -33
-70 +63 -14 -81 -9 -97 -93 +5 +76 +100 -40 -45 +12 +95 +30 -5 +4 +36 -29 +88 +28 -96
+0 +39 -97 +28 +88 +10 +65 -42 -50 +32 -25 -66 -8 -8 -68 +41 -61 -87 +58 +92 -3 +43
+29 +60 +42 +74 -59 -66 -51 +29 -7 -42 -32 +62 -71 -81 -1 -20 -23 +45 +55 -32 -48 +81
-70 -33 +78 -50 +77 +82 -48 +68 +26 +14 +0 +53 -89 +86 -7 +62 +80 +74 +47 -51 -21 +75
-32 +28 +30 +17 -42 +12 -20 -27 -57 +10 -84 -51 +39 -32 -95 +80 +70 +23 +84 +94 +10 -31
+28 +36 +16 +42 -60 +86 -79 +69 +50 -47 -2 +60 +10 +49 -95 -67 -84 -30 +91 +75 -89 -65
+74 +81 -44 -26 -84 -42 -5 +74 +90 +52 -50 -91 +53 -55 -11 +84 -37 +3 -51 -85 -55 -15
--- BASE SOLUTION ---
[-16, -4, 27, -3, 57, -94, 60, -68, 47, -48, 25, -72, -78, 69, 45, -5, -61, 45, 47, 94, -89, -15]
[-90, 100, 53, 64, 77, 36, -30, 8, -43, -52, -64, -66, 14, -11, -54, -93, 10, -59, -50, 30, 36, 74]
--- MY SOLUTION ---
[-16, -4, 27, -3, 57, -94, 60, -68, 47, -48, 25, -72, -78, 69, 45, -5, -61, 45, 47, 94, -89, -15]
[-90, 100, 53, 64, 77, 36, -30, 8, -43, -52, -64, -66, 14, -11, -54, -93, 10, -59, -50, 30, 36, 74]
73 == 73
Worked.
TEST CASE: 23
----------------------------------------
23
-52 -62 -50 +74 +84 -27 -59 -76 -16 +91 -8 -22 +8 -23 +16 -43 +78 +49 +7 -7 -52 +46 +68
-30 +83 -7 +56 +52 +88 -62 -74 +44 -70 -23 -82 +12 -13 -44 +98 +59 +63 +36 +22 +36 +54 +49
-17 +22 -50 +23 +36 -77 +80 +52 -25 +68 +11 -69 +72 +95 -99 +43 -46 +67 +25 -2 -61 -56 -84
+88 +51 -20 +4 +85 +24 +46 -12 +11 -2 -86 +71 -86 +84 +40 +78 +60 -27 +70 +26 -25 -82 +83
+42 +17 +24 -60 -46 +28 +70 +64 -47 +24 +77 +14 +20 +85 +37 +34 -62 +10 -64 +86 +12 +8 +64
+19 +40 -92 -64 -93 +43 +53 -23 +3 +68 +68 -6 +40 -66 -58 +4 -40 -30 -71 -8 -95 +60 +61
+59 +96 +78 +13 -52 -78 +92 +62 +82 +54 +51 +87 +91 +13 -66 -10 +60 -19 +20 +1 +67 +30 +10
-4 +63 +25 -89 +66 +82 +54 -76 -81 -12 -59 -68 -11 +20 -10 +75 -42 -67 +11 +98 +87 -68 +61
+47 +86 -4 +62 -65 +4 -99 +61 +80 +79 -80 -76 +58 -40 -7 +62 +96 -29 +46 -23 +31 +16 +86
+50 +69 +65 +46 +34 +88 +59 -25 -76 +0 +44 -3 -9 +69 -19 +54 -17 -46 -70 +34 -28 +57 +100
+37 +36 +89 -35 +95 -19 -11 -52 -25 -49 -75 -40 +32 -41 -7 -4 +43 -34 -36 -64 +7 -94 -3
+57 +52 -4 -32 +29 +41 -40 +79 +78 -80 +61 -23 +5 +85 -46 +38 -3 +0 -36 -51 +95 +95 +18
-98 -14 -57 +63 +13 -84 -90 +69 -29 +96 +99 +25 +1 +24 +14 -18 +6 -35 +66 -20 -48 +29 +38
+36 +91 -75 +77 -88 -57 -35 -39 +12 -22 -45 +64 +54 -59 -9 +53 +34 -96 -65 +23 +14 +88 +24
+53 -13 -34 -37 +60 -14 +0 -81 +69 -91 +69 -55 +23 +12 +38 +8 -9 +31 +58 -33 +50 +97 +88
+67 -76 -11 -89 -60 -92 +41 -58 +83 -8 -10 -29 +6 +55 +87 -5 -56 +59 -92 +92 -87 +14 +86
-86 +30 +86 -94 -56 -47 +27 -74 -90 +9 +23 +57 -41 +50 +90 -92 +79 +95 +31 +38 -39 -7 +13
+70 +34 +11 -38 +74 +36 +49 +80 -70 +100 -67 -55 -92 +90 -41 +75 -63 +46 +52 +46 +85 -4 -47
-69 -51 +19 +79 +78 +40 -54 +69 +36 -44 -83 +39 -75 +79 +16 +20 +32 +36 -62 +63 -83 +28 +23
-89 +28 -18 -82 +9 -13 +52 +14 -48 +76 -9 +6 -9 -25 +83 -98 +37 -53 -77 -96 -100 +70 -93
+53 -81 +2 +12 +3 -1 -24 -62 +51 -43 +43 -83 -41 -17 -66 +57 -5 -5 +86 +4 -3 -8 -36
-3 +96 -73 +76 -89 -47 -7 -22 +63 -13 -9 -5 -52 -69 -76 +71 +97 +97 -29 +76 +76 +39 -50
+30 -3 +3 +51 +55 +9 +54 -86 +99 +92 +5 +10 -35 -28 -79 -91 +64 -42 +90 +28 -14 -23 -22
--- BASE SOLUTION ---
[-52, 83, -50, 4, -46, 43, 92, -76, 80, 0, -75, -23, 1, -59, 38, -5, 79, 46, -62, -96, -3, 39, -22]
[68, 54, -61, 26, -64, -30, 60, 75, -7, 69, 32, -23, 99, -22, 69, -58, 27, 36, 78, -82, 2, 96, 30]
--- MY SOLUTION ---
[-52, 83, -50, 4, -46, 43, 92, -76, 80, 0, -75, -23, 1, -59, 38, -5, 79, 46, -62, -96, -3, 39, -22]
[68, 54, -61, 26, -64, -30, 60, 75, -7, 69, 32, -23, 99, -22, 69, -58, 27, 36, 78, -82, 2, 96, 30]
538 == 538
Worked.
TEST CASE: 24
----------------------------------------
24
-69 -81 -23 -89 +83 -27 -92 +22 -72 -37 -61 +29 -14 +45 +52 +79 +85 -39 +94 +66 +77 -90 -24 -54
+78 -22 -67 +35 -99 +86 +51 -99 -14 -77 +59 +43 +15 -21 -22 -38 -99 +40 -66 +90 +45 -17 +98 +75
-2 -96 -77 +64 +11 +58 -40 +81 +100 -45 -79 -64 -10 -57 +57 +90 -96 +73 +47 -79 -64 +47 +62 -74
-32 +84 +95 -6 -98 -18 +28 -7 +76 -73 -79 -78 -35 -41 -67 -41 +10 -9 -78 +26 +46 -32 +47 -63
+66 +32 +78 +61 +94 +81 +52 +36 +3 +71 +6 -60 +15 +67 +26 -12 +42 +33 +56 -37 -50 +47 +75 -9
-39 -51 +20 +45 +42 +12 +21 -46 -70 -78 +36 +52 +51 -84 -14 +82 -99 -4 -62 -35 +83 +18 +10 +92
+74 -63 -80 -95 +70 -20 +61 +63 +41 +94 -46 -55 -74 -91 -16 +35 +5 +42 +13 +31 +92 +94 -12 +29
+52 -25 +50 +27 +30 -66 +22 -7 -94 +4 -72 -16 +46 +6 -47 -83 -92 +54 -99 +2 +5 +73 -42 -86
-82 +44 -29 +96 +22 +14 +77 -49 -66 -71 +71 -56 -27 -90 -10 +2 -12 +40 +53 -47 -37 -44 +19 -56
+1 +92 -11 +77 -61 +46 +76 +77 -27 -20 +44 +52 +0 -99 +54 +17 -92 +39 -6 +41 -16 -79 +24 +97
+34 -54 +62 -20 -93 -57 -85 -49 -29 -5 -57 +72 -24 -3 -2 -15 +23 -51 +25 -34 -95 +94 +75 +8
-47 -94 +97 -47 -21 -59 +66 -48 +58 +20 -76 -70 +69 +35 +84 +77 -92 +94 +78 -71 -55 +25 +22 +50
-32 +17 -79 +17 -92 +43 +74 -29 +47 +69 +88 -86 -15 +96 -73 -58 +9 +83 -42 +49 +43 -6 -96 +65
-55 -57 -18 +88 +34 -34 -77 -84 +5 -64 -66 +55 +53 +74 -100 -7 +35 -24 +2 -12 -26 +72 +45 -79
+38 -33 +2 +3 +94 +31 +20 -80 +54 -24 -68 +73 +44 +73 +56 -6 +55 +53 +98 +57 -44 +8 +58 +50
-56 -61 +32 +51 -75 -100 +52 +58 +28 -10 -25 +58 +97 -70 -48 -51 -30 +94 -18 -61 +19 -60 -82 +71
-74 -27 -8 -98 -90 +43 -93 +57 -63 +80 +99 +22 -92 +50 +52 -10 +47 -31 +89 +95 +78 +51 +61 +7
-93 +23 -22 -82 +14 -20 +91 -70 +14 -36 -75 -34 +50 -33 -27 +93 +74 +99 +19 -12 +52 +88 -52 +53
-22 -24 -98 +23 +58 +42 +38 -85 -27 +53 +76 +82 +25 +42 +34 -62 +73 +54 +44 +84 -30 -66 -33 -57
-3 -9 -44 +85 +21 +92 -12 +10 +39 -34 -9 +70 -83 +30 -96 +71 -32 +19 +96 +99 -52 -17 -5 -22
-36 +84 +11 +86 -33 +53 -96 +11 -48 -82 +40 +56 -82 +41 -19 +24 -91 -21 +46 -39 +58 -77 +46 +68
-47 -65 +29 -77 -42 -73 +16 +57 +17 +100 +98 -24 -85 -35 -28 -63 +13 +5 +43 -53 -42 -36 -46 -57
+85 +10 +92 -45 +4 -91 -62 +94 -42 +44 +42 -47 -76 -85 +63 +66 -98 -1 +57 +83 +42 -56 +45 -77
+15 +12 -36 +24 -51 -22 -45 +46 -25 -50 +28 +75 -48 -78 +79 -96 -37 +98 -95 +61 +2 -90 +28 +51
--- BASE SOLUTION ---
[-69, -22, -77, -6, 94, 12, 61, -7, -66, -20, -57, -70, -15, 74, 56, -51, 47, 99, 44, 99, 58, -36, 45, 51]
[-54, 98, 47, 46, -37, -62, 42, -92, 2, 54, -3, 69, -86, -66, -24, 28, 57, 91, 42, 21, 86, 29, 10, 15]
--- MY SOLUTION ---
[-69, -22, -77, -6, 94, 12, 61, -7, -66, -20, -57, -70, -15, 74, 56, -51, 47, 99, 44, 99, 58, -36, 45, 51]
[-54, 98, 47, 46, -37, -62, 42, -92, 2, 54, -3, 69, -86, -66, -24, 28, 57, 91, 42, 21, 86, 29, 10, 15]
69 == 69
Worked.
TEST CASE: 25
----------------------------------------
25
-65 +17 +100 +16 +13 +63 +7 -49 -92 -63 -61 +14 +83 +9 -22 -92 -57 +23 +58 -53 -15 +95 -40 +49 +8
-16 +4 -33 +72 -80 +57 +5 -57 +30 +79 +26 -88 -96 -75 -71 +21 +56 -97 +18 +14 -93 -4 +28 -12 -59
-95 +43 +59 -57 +78 -53 +48 -37 -91 -33 -17 -19 -41 +54 -59 -26 +58 +22 +55 -36 -60 +85 -77 +80 +31
-72 -48 -78 -21 -10 -86 +92 -61 +39 -25 +74 -16 -40 -85 +99 -51 +2 +98 +13 +82 +86 +61 +59 -51 -45
+28 -24 +42 -79 -73 +87 -55 +76 -32 -62 +70 -57 +35 +4 -6 -67 +82 -45 +8 -87 -34 -75 +98 +68 +83
-9 -4 +24 +39 -41 +33 +11 +56 +85 +38 -43 +37 -94 +8 -56 +74 -32 +74 +47 -22 +50 +11 +84 +34 +68
+80 +67 -78 -57 -47 -60 -33 +66 +0 -14 -80 -7 -93 +68 -3 +2 +41 +7 +100 -48 +34 +54 -39 -81 -81
+80 -85 +33 +47 +15 +63 -43 -87 -18 -95 +88 -11 +0 -4 -47 -31 -2 -22 +38 +100 -34 +80 +76 +13 -84
-6 +32 +38 +73 -62 -96 +68 -8 -46 +21 +2 -9 +81 -2 +64 -38 +13 +44 +19 -13 -87 -63 -1 -31 +25
+56 +84 -3 -68 -81 +85 +67 -73 +44 +49 -59 -61 -1 -98 +5 -78 +10 +48 +1 -51 -60 -75 +100 -81 -61
+27 -55 -93 -16 +65 +19 -80 +15 +3 -77 -86 -42 +75 -21 +26 -5 -43 +75 -61 +78 -59 -75 -70 +5 +95
+55 +36 -16 +19 -60 +73 -35 -76 -34 -32 -73 -3 -44 -66 +8 -77 +71 -72 +37 -82 -74 +51 +44 +88 +56
-51 +51 +34 -69 -72 +56 -69 +43 -12 -17 +29 -82 +93 -41 +7 +53 +97 -35 -94 -40 +73 +21 +8 -20 -33
-85 +29 +84 +63 +16 +15 +7 -66 -55 -56 -77 -58 +44 -32 -17 +11 +77 +35 +78 -67 -100 +16 +95 +86 +54
+41 -59 -81 -34 -66 -61 -67 +82 -77 +41 +72 +30 -35 -20 -4 -22 -14 +99 +74 +84 -77 +9 -35 +13 -78
+37 -89 -61 -62 -64 -41 -56 -34 -99 -85 -32 -91 +0 -74 +68 -70 -96 -77 -82 -27 +1 -36 -33 +75 -42
-74 +43 -70 +31 +58 -55 -9 +96 +45 +51 +95 +9 +71 +70 -72 -29 -12 -39 +14 -99 +99 -1 -49 -90 -46
-92 +38 -97 +69 +12 -11 -92 -40 -88 +30 +78 -46 +67 +35 -37 -64 -5 -95 -26 +96 +39 +79 +49 -95 -6
-89 -99 +65 +71 +60 -23 -48 +95 +10 -59 -93 -90 -75 +54 +10 -33 +1 -20 +87 -79 +79 -3 -66 +44 +31
+68 -83 -38 -55 +18 +37 +46 -75 -41 -100 -50 -10 +37 +55 -28 -72 +22 +94 -44 +44 -82 +86 +51 -2 -81
-44 -89 +10 +23 +82 +15 +69 -57 -35 +84 -21 -54 -21 +97 -64 -32 -36 +83 +49 +95 +29 +42 +47 -4 +24
+100 +76 +37 -71 -60 +74 -14 -45 +67 -60 -68 +57 +0 -65 +40 +60 +72 -39 +61 +12 +91 +29 +49 +6 +39
-94 +98 +63 +1 -13 -32 -72 -68 -47 +70 +88 +0 -73 -7 -8 -35 +52 +54 +63 +10 -87 -40 +28 +63 -23
-90 -32 -74 -44 -99 +46 -60 -61 -7 +14 +21 -95 -38 +89 -18 -96 +95 +47 +67 -45 -24 -97 -51 -1 -68
-10 +51 +100 +38 +17 -74 +84 -52 +6 -86 +7 +23 +19 -35 +88 -100 -39 -44 +84 +2 -87 -59 -42 +28 +90
--- BASE SOLUTION ---
[-65, 4, 59, -21, -73, 33, -33, -87, -46, 49, -86, -3, 93, -32, -4, -70, -12, -95, 87, 44, 29, 29, 28, -1, 90]
[8, -12, -77, 61, -34, -22, 100, -22, 13, -78, 26, -66, 93, -58, 72, -85, 45, -40, -48, 37, 82, -71, 63, -32, -10]
--- MY SOLUTION ---
[-65, 4, 59, -21, -73, 33, -33, -87, -46, 49, -86, -3, 93, -32, -4, -70, -12, -95, 87, 44, 29, 29, 28, -1, 90]
[8, -12, -77, 61, -34, -22, 100, -22, 13, -78, 26, -66, 93, -58, 72, -85, 45, -40, -48, 37, 82, -71, 63, -32, -10]
28 == 28
Worked.
TEST CASE: 26
----------------------------------------
26
-56 -62 -83 -2 -25 -5 +74 -25 +24 +50 +13 -47 -93 -19 +34 -5 -83 +60 -67 -60 +9 -88 -13 -19 +16 +16
-4 +9 -75 -30 +21 +66 -22 +79 +31 -98 -30 -34 -60 -96 -4 -34 +81 +42 +74 +28 -80 -85 +87 +44 +22 +89
+99 +49 +83 +22 -57 +38 +6 +46 +57 +64 +96 -25 +26 -89 +23 +48 -71 +37 +61 +90 +82 -88 +80 +16 +68 +20
+78 +88 +65 -29 -65 +50 +15 +85 -83 -1 -24 +49 +44 +62 -87 -85 -85 +9 -63 +27 -2 +54 -62 -78 -40 -4
-91 -14 +46 -67 -53 +22 -65 +10 -63 -53 -10 -6 -73 -85 -48 -51 -19 -43 +57 +58 +11 -11 -17 -27 -45 +84
+54 -67 +2 +23 +56 +99 -49 +77 -69 -4 -25 -49 +4 +92 +33 +51 +39 +37 +88 +88 +4 +47 +21 -48 -80 +0
-28 +25 -34 -69 -69 +100 -25 +92 -69 +57 -47 -93 -1 +9 +43 +81 +51 -30 +45 +43 -6 -62 +47 -23 +52 +99
-60 -97 -82 +5 +64 +100 +68 +51 +61 -43 -30 +94 -68 -95 +63 +48 -14 -8 +39 +45 -20 +15 -56 +52 -79 -81
+42 +33 +59 -3 -10 -79 +33 +23 -23 +29 +1 -65 +67 +10 -23 +11 -57 -33 -87 -97 -4 -11 +21 +18 +78 +2
-30 +62 -48 -99 +2 -87 +63 -53 -57 +94 -16 +48 -84 -47 -77 -41 -49 -60 -65 -49 -16 +81 -99 -42 -87 +77
-5 +46 +54 +27 -39 +98 +0 -49 +68 +97 -33 -47 +89 +22 -56 +58 -43 +84 -1 -85 -72 -12 -14 +4 -86 +65
+63 -82 -1 +37 -1 -80 +12 +71 +16 +79 +45 +36 +49 +4 +48 +13 -26 +54 +55 +58 +20 -28 -43 +5 -95 -26
+62 -74 -18 -7 +72 +2 +38 +40 -46 -95 -79 +82 -72 -32 +5 +25 -78 -4 +8 +5 +97 +62 +20 +60 -96 +39
+97 +42 +96 -53 +19 -20 -37 +32 -70 +3 +35 -36 +48 -2 -19 +54 -37 -25 -5 -1 -63 -11 +20 -65 +38 -96
-63 -10 -41 +13 +30 +6 -45 -6 -35 -20 -15 -32 -90 +42 -9 -30 -87 -60 +24 -30 -77 -33 -48 -49 -34 -78
-45 -25 -28 -10 -52 +63 -83 +13 +13 -98 +24 -33 -39 -74 -50 -44 -41 +93 -12 -4 -57 +82 -48 -69 -9 +11
+23 +66 +45 -63 -88 -11 +96 -10 +1 -85 +83 -69 +59 +80 +93 -52 +26 -79 -7 -15 -28 +48 -61 +28 +72 +35
+53 -31 -88 -20 -86 +98 -5 -99 -68 +30 +22 +29 +29 +81 +78 +25 -38 -69 -35 -7 -90 +84 +98 +36 +35 -84
-66 -63 +76 +96 +73 +43 +24 +26 +65 +94 -98 +3 -54 +48 +81 +52 +52 -12 -75 -2 -88 -13 +1 -91 -44 +96
-35 +31 -86 +32 +76 -57 +61 +54 -86 +88 -9 +79 +13 +97 -31 -1 +79 +51 +52 +67 +81 -71 -1 -1 -66 -9
-49 -100 -21 +32 -8 +78 +70 -61 -50 +47 -11 +71 +49 -94 +72 +71 +73 +56 -10 -43 +70 +36 -44 +61 -56 -64
-1 -84 -50 +68 -12 -26 -15 +4 +15 +96 +97 -49 +80 +77 +84 -65 -13 +92 -60 -71 -70 -75 -68 -96 -55 +34
+69 -9 -17 +59 -52 -2 -62 -68 +87 +84 -91 +69 +11 -6 +76 -31 -25 +89 +75 -56 -52 +97 -41 -35 -69 -80
+38 -87 +25 +17 -44 -28 -61 +82 -45 +24 -94 -98 +26 +52 -76 -70 -75 -98 +54 -39 +0 +78 -71 +68 +52 +97
-41 -85 +76 -56 +49 +28 -64 -85 +48 +80 +50 +38 -34 +54 +52 +26 -51 -88 +44 -40 -52 +9 +57 +63 +17 -41
+84 +99 -19 +58 +74 +80 +20 -67 -38 -56 +31 -99 +99 +54 -78 +29 +8 -84 +0 +44 +41 -88 +17 -49 -56 -3
--- BASE SOLUTION ---
[-56, 9, 83, -29, -53, 99, -25, 51, -23, 94, -33, 36, -72, -2, -9, -44, 26, -69, -75, 67, 70, -75, -41, 68, 17, -3]
[16, 22, 16, -62, -11, 4, 43, 39, -33, -49, 58, 48, -32, 48, -32, 24, -85, -68, 26, 61, 78, -12, 59, 25, -85, 84]
--- MY SOLUTION ---
[-56, 9, 83, -29, -53, 99, -25, 51, -23, 94, -33, 36, -72, -2, -9, -44, 26, -69, -75, 67, 70, -75, -41, 68, 17, -3]
[16, 22, 16, -62, -11, 4, 43, 39, -33, -49, 58, 48, -32, 48, -32, 24, -85, -68, 26, 61, 78, -12, 59, 25, -85, 84]
171 == 171
Worked.
TEST CASE: 27
----------------------------------------
27
-72 -3 +26 -88 -22 +40 +0 +99 -14 -79 +8 -9 -53 -52 -45 -3 +100 -7 +73 -29 -33 +43 +10 +62 -98 -80 -67
-40 +56 -77 +79 -27 +49 -87 -62 -82 -57 +58 +26 -96 -51 +72 -7 +2 +94 +53 -15 +43 -32 +65 -17 -30 +50 -54
-64 +11 -96 -11 +83 +24 +22 +71 -64 -24 -91 -96 -43 -2 +18 -14 +62 -12 -56 -26 -86 -74 +66 -53 +87 -77 -94
+75 +56 -16 -6 +24 -2 +44 -21 +28 +70 -67 -63 +56 +92 -4 +67 +69 -28 -26 -50 +7 -3 +83 -52 +99 +9 -76
+0 +6 -22 +73 -70 +9 -14 +72 +12 -5 -100 +17 -40 +36 +32 +2 -10 -44 +45 -26 -83 +93 +96 +47 +77 +33 +85
-42 +65 -71 -93 -40 +59 -99 +22 +18 -76 +15 -58 +19 -1 +9 +81 +30 +100 +21 +65 -30 -91 -45 -15 -76 -96 -80
+46 -27 +23 -74 +15 +84 +93 -48 +36 +20 +33 -74 -61 +85 -16 +26 +53 -90 +52 -99 +24 -46 +39 -60 -4 -31 +45
-80 +95 +29 -63 +8 -21 -70 -73 -96 +17 +56 +55 -67 +5 +39 -7 +31 +60 -21 +1 +64 -82 +65 +20 -35 -17 +16
+72 +95 -82 -57 +6 +74 +62 +15 +80 -14 +12 +35 +90 -54 +94 +62 +95 +22 -24 +1 -17 +18 +9 +48 +42 -55 -50
-39 -73 -39 -5 +33 +67 +86 -27 -8 -75 +5 -42 -71 +27 +13 +10 +33 +2 -53 -90 -81 -91 +13 -84 +14 -17 -59
+11 +7 -83 -51 -32 +46 -35 +56 +64 -55 +90 -100 -73 +83 +64 +58 +81 -86 -51 +38 +24 +72 +1 -48 +25 -21 -45
-2 +87 -7 +13 +16 -22 -27 -82 +62 -83 -42 -35 -17 -51 -71 +95 -34 +76 -94 +48 -81 -61 +73 +13 -14 -28 -67
+71 +98 -16 -14 -90 +19 +7 -42 -6 -33 -33 +48 -64 +22 +34 +0 +79 -15 -52 -99 -4 +77 -83 +46 +72 -44 +69
+30 -34 -42 -4 +93 -32 -93 -56 -92 +15 -98 -99 -85 +10 -13 -85 +95 +57 +65 +3 -13 -56 +52 -75 +53 -58 -24
-28 +64 -52 +53 +47 +1 +44 -52 -100 -87 -85 +50 +47 +52 -21 +0 +38 -3 -15 -6 +0 -42 -47 +78 +46 +79 +80
-93 +51 -21 +51 +26 +15 +90 -16 +79 -2 +1 -54 +14 -77 -9 -79 -55 +76 +59 +80 -95 +72 -44 -83 -34 +87 -6
+68 -84 +60 +7 +26 +23 +73 -74 -56 -49 -72 +10 +6 -90 -57 -9 -58 -80 -90 +7 -48 -34 -97 +54 +31 -1 +18
+88 +70 -32 +4 -37 +17 +24 +61 -19 +11 +95 -10 +4 +92 -100 +44 +17 -6 -45 -26 +87 +31 -58 +66 -28 +50 -81
-92 -62 +66 -46 +35 -54 -29 -7 +59 -23 +17 -17 +7 -30 -72 +4 -90 +35 +49 +4 -34 -25 +80 +44 -45 +34 -11
+63 +68 +98 +71 +33 -29 +91 -43 -36 +71 -23 +52 -25 -27 -4 -28 +87 +56 -14 +64 -70 +29 -10 +62 +68 -21 -41
+89 +30 +94 -86 +49 -78 +21 -49 +32 +32 +52 -4 -93 +3 +29 +62 -84 +11 +42 -86 -60 -44 +17 -34 +75 -50 +70
-69 +44 -68 +43 +97 +37 -82 +10 +79 -58 +74 -58 -15 -75 +31 -46 -84 -2 -27 +19 +20 +93 +13 -57 -99 +29 +42
-61 -19 -9 +51 -96 +26 +75 +19 -89 +0 -32 -53 +11 -22 +79 +91 -45 -41 +33 +59 -49 +77 +8 -47 +73 +60 -84
-49 -89 +35 -9 -14 +64 +32 +61 +76 -38 -22 -13 -37 +12 -4 -53 -11 +25 -72 +45 -74 -63 -98 -59 -42 -30 -14
+4 -5 +24 -31 +34 +22 +30 -50 -78 -17 -89 -52 -69 +81 +19 -16 -4 -47 +17 -16 -2 +52 +50 +4 +27 +55 +48
-23 -21 -54 -53 -12 +17 -31 +87 +58 -12 +33 -62 -100 -53 +90 +54 +21 -22 -55 -38 -99 -65 +6 -2 +73 -90 -97
-23 +30 +88 +28 -2 +94 +76 -5 +10 +56 +0 +97 -55 +35 +44 -86 -68 +96 +57 -3 +41 +30 -90 +3 -19 -41 -98
--- BASE SOLUTION ---
[-72, 56, -96, -6, -70, 59, 93, -73, 80, -75, 90, -35, -64, 10, -21, -79, -58, -6, 49, 64, -60, 93, 8, -59, 27, -90, -98]
[-67, 50, 87, -52, 96, -91, 24, 1, -24, 2, 81, 95, 34, 10, 47, -54, -72, 11, 59, -43, 21, 37, -96, -9, 24, -21, -23]
--- MY SOLUTION ---
[-72, 56, -96, -6, -70, 59, 93, -73, 80, -75, 90, -35, -64, 10, -21, -79, -58, -6, 49, 64, -60, 93, 8, -59, 27, -90, -98]
[-67, 50, 87, -52, 96, -91, 24, 1, -24, 2, 81, 95, 34, 10, 47, -54, -72, 11, 59, -43, 21, 37, -96, -9, 24, -21, -23]
460 == 460
Worked.
TEST CASE: 28
----------------------------------------
28
-45 +25 +52 -10 -72 +91 +70 +23 -56 +83 +10 +47 +23 -46 +93 -16 -57 -2 -57 -66 +10 +85 +50 -64 -71 +83 +49 +75
+71 +2 -87 +54 -87 +53 +60 -75 -85 -95 -78 +85 +45 -9 -32 -1 +37 -50 -88 -35 +51 -55 -77 -49 +83 +73 -41 -37
-19 -55 +74 +24 +35 +99 -69 -50 +5 -100 +8 -34 +18 -9 -69 +5 -49 -14 +71 -62 +67 +68 +29 -57 +51 -86 -92 +74
-82 +12 -35 +85 +80 -90 +79 +47 +36 -54 +88 -48 +89 +44 -83 +27 -19 +54 +24 +14 +13 +93 +68 -9 -39 +72 +51 +9
+96 +76 -84 -59 -29 +42 -9 +61 -4 -4 +3 +68 +44 -82 +32 +11 +80 -60 +25 +42 -64 +49 +91 +35 -64 -23 +97 -72
+86 +75 -25 -23 -16 +49 -98 -66 +96 -20 +49 -72 -78 +73 +60 +30 +36 -50 -96 -31 -76 +43 +19 -42 -26 -5 -22 -38
-33 -11 -99 -88 -37 +29 +38 -32 +81 -55 -22 +85 -67 -76 -82 -21 -55 -88 +85 +34 +13 +94 +90 +21 -12 -51 +16 +59
-69 +79 +21 +2 +12 -95 -85 +54 -7 -37 +18 -59 +23 +41 -76 +48 +5 +44 +9 +90 -58 -14 +21 +65 +85 +3 -8 -83
+95 +14 -92 +24 +23 +95 -27 +19 +12 -59 -14 +57 -12 +78 +78 -75 -88 -63 -53 -32 +11 +9 +9 +21 -20 -73 +25 -38
+7 -14 -12 +3 +30 +95 +61 -25 -72 +87 +97 +85 +34 -8 +2 +90 +40 +62 +85 -11 +87 -70 +18 -31 -21 -75 +23 -21
+59 +36 -30 -41 +77 -100 -94 +73 -88 +54 +59 +4 +19 -75 +95 +67 +0 -96 +41 +73 +88 +42 -91 -35 -54 -79 +44 +22
-10 +55 -84 -8 +28 +86 +29 +78 +7 +38 -42 -34 -7 -26 +100 +5 +21 -14 +10 +1 -55 -14 -89 +77 +38 +42 -13 -92
-18 +41 -7 +10 +43 +67 +90 -4 +5 -50 +41 -31 +9 -22 -1 -76 +75 -46 +41 -98 -38 +54 -96 -46 -80 -43 -97 -39
+16 -34 -6 +84 -11 +65 -60 +80 +38 -5 +21 -7 -41 -13 -4 +40 +9 -1 -94 -17 +94 +23 -10 +28 -20 -82 -94 -25
-14 +46 +49 +90 +97 +55 +64 -45 +16 +57 -30 -64 -26 +63 -18 -9 +25 +90 +34 -41 -83 -59 +10 -28 -6 -39 +93 -44
-72 -6 -76 +68 -77 -21 +59 -26 +55 -12 -26 +67 -18 -68 +47 -57 -79 +98 -22 +100 +90 -69 +35 -62 +95 +9 +92 +78
-51 -18 -10 +63 -3 -27 -70 +41 +50 +61 -19 -13 -16 +60 -29 +65 +89 +68 +68 -30 -35 -95 -69 +75 +49 +37 +79 +54
+6 +65 +3 +65 -19 +69 -13 +86 +44 -68 +42 -10 -78 -36 -43 +43 +95 +33 -48 -24 -38 +4 -13 +8 +0 -47 +72 +13
+19 +93 -100 +34 +64 -46 +38 +76 -54 -49 +26 +15 -72 -95 -72 +88 -70 +55 +75 +88 +75 -67 -32 -59 +90 -76 -40 +33
+60 -18 +96 +12 +51 -35 +43 +20 +14 +70 -20 -21 -86 -11 +74 +2 -83 +23 +79 -68 -9 +1 -98 -77 +40 +49 -4 +89
+28 +51 -35 +6 -92 -25 +66 -15 +9 +41 -91 -89 -23 -70 +51 +98 -59 -50 +67 -29 +79 +78 +7 +59 +95 -33 -89 -95
+17 +12 -18 -85 -33 -82 -76 +59 -59 -3 +83 +37 +60 -99 +21 -48 +32 +74 +71 -4 -67 -55 -85 +36 +98 +58 -56 +12
-84 -100 -93 -21 +61 +47 +94 +74 -12 +89 +19 -75 +19 -17 +72 +86 +50 +29 +44 -87 +41 +92 +37 +15 -82 +57 +43 -14
-79 -33 +49 -7 +52 +97 +45 -23 +36 -61 -70 +47 -25 +77 +8 +88 +7 -82 +61 +24 -70 +54 -47 +64 -34 +44 +63 -10
+44 -43 +3 -72 +72 -20 -40 -59 +77 -22 -59 -12 +20 +31 +21 -11 +70 -18 +7 -93 -84 -81 +74 -2 -63 -61 -2 +4
-42 +73 -10 -7 -57 +89 +0 +31 +16 +15 -52 +69 +22 +54 -68 -33 +53 -93 +36 -4 +89 +36 +61 +66 -41 -90 +60 -4
-82 -82 -76 -97 -39 -40 +41 -47 -61 +83 +58 +43 +89 -11 +51 -17 +4 +95 -37 +69 -86 +72 +11 +84 -7 -82 -8 +41
-49 -18 +44 +15 -57 -19 -75 -3 -29 -69 -79 -67 +3 -18 +75 -45 -30 -50 +54 -81 -38 -26 +63 +20 +67 -73 -59 +79
--- BASE SOLUTION ---
[-45, 2, 74, 85, -29, 49, 38, 54, 12, 87, 59, -34, 9, -13, -18, -57, 89, 33, 75, -68, 79, -55, 37, 64, -63, -90, -8, 79]
[75, -41, -86, -39, 35, 19, 94, -58, -32, 85, -96, 21, -76, -4, 63, -18, -13, 42, -49, 14, -15, -76, 47, 52, -72, -10, -82, -49]
--- MY SOLUTION ---
[-45, 2, 74, 85, -29, 49, 38, 54, 12, 87, 59, -34, 9, -13, -18, -57, 89, 33, 75, -68, 79, -55, 37, 64, -63, -90, -8, 79]
[75, -41, -86, -39, 35, 19, 94, -58, -32, 85, -96, 21, -76, -4, 63, -18, -13, 42, -49, 14, -15, -76, 47, 52, -72, -10, -82, -49]
714 == 714
Worked.
TEST CASE: 29
----------------------------------------
29
+39 +37 -82 +46 -36 +65 -36 +16 +95 +45 -88 -90 -60 -63 +88 -35 +57 +76 -66 +11 +53 -33 +69 +4 +71 -49 -75 +82 +27
-98 +70 -35 +61 +22 -5 -9 -8 +24 +4 -65 +95 -23 +42 +7 -15 +90 -81 -75 -40 +49 +25 -66 +73 +33 +43 +70 +94 +59
-19 -65 +43 +58 -93 -66 -46 -75 +55 -56 +56 +44 -22 +36 +19 +43 +68 +11 -71 +70 +72 +19 +56 -54 -92 +12 +36 +59 +23
+67 +43 -87 -17 -36 +29 -100 -31 +4 +92 -5 -37 +71 +100 +14 +87 -16 -12 -32 -18 -76 -25 +90 +54 +47 +83 -98 +98 +30
-88 +89 +68 -45 -39 +52 +91 +1 +93 -24 +23 -88 +43 +74 -78 +45 -40 -49 -29 +18 -18 +36 +75 -52 +42 -35 +84 +89 +84
+10 -30 +8 +79 -51 -32 +99 +77 +77 -42 +96 -99 -26 +100 +56 +65 -76 -43 -32 -56 +19 -32 -41 +68 -75 +21 -41 +98 +92
+68 -61 +33 -41 -26 -28 -29 +39 -83 +61 -82 +67 +65 +86 +41 -3 +54 -23 -15 +83 -83 -26 +20 -61 -48 -38 +70 +36 -98
+46 -92 +98 -62 -28 +69 -36 +26 +23 +83 -100 +84 +73 -94 +51 +63 -31 -15 +22 +37 +27 +19 +63 +99 +90 -72 +30 -12 -97
-19 +55 -14 +24 -25 -6 -18 -82 +44 -39 -85 -90 +48 +1 -37 -61 -37 -29 +75 +21 +23 +71 -3 +4 +44 +6 -39 +100 +49
+58 +80 +75 -31 +41 +1 -43 +60 +43 -72 +49 +87 +56 +89 +19 -21 +8 -18 -86 +95 -46 +29 -77 -12 +96 -81 -67 +88 -24
-24 -12 +62 +54 +58 +25 +0 +80 -82 -29 -1 -42 +18 +32 +25 +77 -92 -5 -44 +30 +62 -92 -78 -90 -72 -65 -79 -31 -100
+49 -29 +77 -29 +3 -61 -85 -82 +81 +43 +92 +35 -2 +62 +10 -52 -95 +54 +90 +45 +1 -5 +18 -74 -75 -94 -33 -23 +88
+39 +61 +46 -40 +45 -21 -96 -40 +77 +12 -82 -91 -70 +15 -2 -69 -23 +19 +19 +58 +17 +88 +48 +52 -22 +8 -98 +12 +7
+11 +37 +95 -34 -73 -68 +77 -94 -61 +40 +52 -44 +23 +44 -52 -91 +65 +61 +27 +90 -24 -58 -47 -49 +1 -51 -78 -60 -43
+17 -9 -50 +7 +76 +25 +31 +0 +54 +21 -31 +16 -59 -4 -71 +36 +34 -39 -65 +69 -81 -64 -41 +42 -23 +79 +49 +42 +92
-2 -6 +29 +34 +10 -84 +11 +2 +98 -74 +0 +20 +10 +81 -9 +75 +47 +92 -39 +25 +30 +82 +64 +66 +74 -17 -99 -68 -72
+77 +4 +10 -61 -82 -52 -68 -79 -13 -65 +63 -32 -26 +45 -62 -27 +64 -2 +37 +39 +82 +89 -80 -15 -93 -20 -30 -28 +25
+85 -60 -91 -88 +34 +21 -58 -5 -73 -3 -58 +32 -74 +49 +6 +54 -14 -4 -2 +85 +31 +8 +8 +97 +9 +26 +25 +27 -92
+16 +23 -92 -23 +63 +24 +57 +43 -94 +11 -81 +35 +75 -18 -77 +95 -8 -62 +84 -8 -66 -14 -58 -29 -9 -16 -3 +89 +28
-52 +0 +36 +97 -71 +78 +78 +80 +78 +82 -80 +93 +59 +45 +1 -94 -23 +46 +72 -10 +52 +8 -66 +65 +17 -79 -36 -59 -47
-92 -49 -70 -3 -53 -2 -56 -17 -97 -95 +43 +95 +6 -79 +67 +56 +37 +68 -78 +94 -41 +22 -74 -28 +22 -50 +56 -25 +68
-31 +68 -62 -59 +32 -23 +29 -29 +20 -52 -77 +87 +94 +76 -5 -32 +97 -5 +2 -49 +27 -95 -11 -2 -100 -100 +17 +3 -80
-27 +39 +99 +13 +49 -8 +8 +32 -9 -94 -2 -48 +6 -54 +21 -48 -33 -8 +47 -65 +53 -21 +29 +14 -53 -82 -95 +99 +45
+39 +25 +11 -72 +37 -2 +81 -98 -36 +69 -61 +99 +7 +78 -14 -19 -95 +35 -53 +55 -90 -29 -63 +6 -93 +42 -44 -4 +57
-43 -66 +16 +20 -50 +49 +36 +41 +61 -45 +33 +31 -88 +18 +4 -97 +9 +83 -52 +56 +32 +15 -17 -12 -12 -70 +14 +47 +47
-22 +83 +60 +26 -92 -47 +84 +30 +2 -32 +76 +1 +22 +14 -59 -95 -94 +50 +51 +37 -41 -43 -32 +65 -42 +0 +57 -23 +10
-60 +84 -43 +50 +39 +52 +75 +33 +63 +54 +66 -48 +27 +53 +43 -95 +46 +86 -81 +82 -19 -65 -4 -74 +10 -43 +50 +23 -89
+30 -61 +64 +48 -30 +21 +1 -13 +79 +51 -57 -47 -87 -60 -70 +36 -62 +43 -93 -7 -36 -100 -39 -72 +5 +91 +76 +87 +54
-19 -83 -72 +98 +64 -21 -19 +7 -19 -59 +88 -70 +66 +6 -24 +96 -56 +73 -80 +50 +63 -37 +100 +32 +76 -2 -76 -27 +30
--- BASE SOLUTION ---
[39, 70, 43, -17, -39, -32, -29, 26, 44, -72, -1, 35, -70, 44, -71, 75, 64, -4, 84, -10, -41, -95, 29, 6, -12, 0, 50, 87, 30]
[27, 94, 36, 83, 42, 68, 20, 19, 23, 95, -44, 54, -23, -91, -71, 81, -26, 32, -81, 82, -97, -29, 8, -2, -50, 26, -43, -61, -19]
--- MY SOLUTION ---
[39, 70, 43, -17, -39, -32, -29, 26, 44, -72, -1, 35, -70, 44, -71, 75, 64, -4, 84, -10, -41, -95, 29, 6, -12, 0, 50, 87, 30]
[27, 94, 36, 83, 42, 68, 20, 19, 23, 95, -44, 54, -23, -91, -71, 81, -26, 32, -81, 82, -97, -29, 8, -2, -50, 26, -43, -61, -19]
80 == 80
Worked.
TEST CASE: 30
----------------------------------------
30
-4 -96 -55 -24 +88 -43 -60 -58 -47 -88 -27 -61 -13 -4 +30 -78 +60 -95 -50 +78 -91 -8 +46 -81 -61 -18 +47 -24 -81 +0
-11 -93 -15 -96 -93 +21 +57 +73 -35 -60 -49 +17 +95 +14 +66 -26 +55 +13 -89 -66 +78 +76 -42 -3 +91 +12 -64 +79 +32 -88
-42 -89 +35 +89 +98 +47 -87 +97 -49 -76 +77 +6 +92 -20 -82 +5 -5 -61 +9 +16 -91 -17 -48 -17 -28 -2 +93 -45 +8 +60
+13 +99 +16 +73 +48 -86 +67 +0 +68 +90 -97 -42 +12 -97 -72 +63 -99 +18 +50 -4 +67 -43 -64 +49 +8 +50 +3 -55 -31 -97
+44 -20 -25 -3 +90 -57 -13 -63 +38 -70 +67 +67 -54 -2 -53 -62 +66 -95 -79 +42 +60 -91 +83 -64 -91 -73 -82 +50 +51 +76
+57 -97 +21 -72 -77 +75 -46 +37 -86 -7 -12 -93 +59 +67 +32 +0 +5 +15 +46 +6 -88 -97 +3 -87 -45 +4 -38 -66 +68 +72
-17 +64 +95 +10 +66 -95 +34 -32 +5 -77 -49 +30 +50 +51 -70 +69 -97 +59 +10 -8 +9 -34 -77 -90 -64 +45 +77 +88 -90 +29
+11 -93 +47 -81 +97 +71 -13 +23 +37 -24 -16 +33 +95 +82 +26 -31 -66 +61 -66 +22 +26 -66 +87 -100 -29 -58 -99 -24 -65 -29
+47 +98 +2 +56 +9 +49 -89 -15 -35 +82 +36 +45 +10 -91 +0 -65 +18 +97 -79 +30 +83 -50 -51 +6 +24 +83 +50 +8 -53 -18
+45 +35 +44 -15 +94 +93 +68 -76 +29 +30 -52 -80 -52 -84 +19 +40 -80 -48 +68 -84 +92 +82 +76 +32 -58 -25 -51 -36 -83 +19
-89 -77 +22 -38 -32 +8 -15 +23 -88 +48 -99 +38 +37 -45 +76 +52 -93 +67 +48 -80 -81 +42 +1 +61 +98 -46 +72 +17 +48 -81
-78 -78 -29 -80 -51 +36 -46 -43 -17 -22 +81 -76 -65 +54 +76 +17 +67 -9 +12 +82 +47 +66 +1 -54 +11 -75 -43 -6 -29 -68
+73 +37 -11 -89 +4 -93 -44 -18 +17 -97 +26 -90 -60 +1 -36 -83 -81 -8 -59 +25 +49 -90 +41 -35 +2 +37 +55 -78 -51 -62
+42 +14 +33 -66 +5 +84 -76 -19 -25 +55 -2 -98 +3 +7 -22 +63 +98 -28 -8 -15 +44 +87 -65 +35 +37 +56 +45 -24 +85 +11
+52 -43 +37 -33 -29 +25 -99 -83 +31 +55 -1 -88 +10 -30 -22 +3 -90 -86 -14 -79 +11 +23 +87 -78 +12 +15 -19 -54 -89 -88
-33 +9 +24 -30 +41 +99 +0 -70 +58 +26 +22 +11 +94 +52 +51 +46 -17 +51 +9 -6 +67 -13 +100 -47 +42 +83 +50 -84 +45 +6
+17 -30 +58 +88 +11 +96 +38 -7 -44 -37 -26 -91 +66 -36 -79 +81 +64 +18 -20 -66 -52 -97 +15 -93 +68 +87 +66 -1 +96 +43
+43 -50 +27 -81 +72 -48 -19 +48 +46 -23 +15 -25 +51 +1 -89 +82 -2 +98 +100 +54 -25 -71 -62 -21 -22 -64 +5 -67 +12 -32
-52 +42 -55 +79 -51 +4 -100 -12 +5 -24 +74 -54 -58 -64 +87 +34 +47 +28 +58 +5 -74 +59 -25 -83 +30 +65 +100 -100 -85 +9
+48 +45 -74 -31 +65 +73 -1 +22 +47 +85 -11 +56 -10 +13 -60 -76 +9 +42 -79 +85 +40 +22 +17 -1 +26 +36 +79 +46 +78 +74
+2 -67 +2 -69 +9 -1 +97 -74 +59 -58 +81 +35 -82 +65 +94 +9 -37 +15 -86 +1 +9 +24 +2 -2 -74 -9 +97 +64 +88 -96
+48 -30 +75 -8 -51 -46 +40 +86 +76 -63 +17 +0 +99 -63 -94 -15 -99 +91 +5 -41 +8 -56 +68 +64 +73 -39 +34 -37 +99 +20
-52 +65 -56 -51 -23 +18 -91 +15 -15 +49 +89 -3 -28 -40 -94 +69 -64 -60 +22 +26 -43 -86 -7 -9 +62 -59 +65 -26 -2 -19
+79 -41 +16 -2 -97 +61 +75 +52 -49 +63 +69 +34 +4 -100 -9 +23 +84 +9 +78 -49 -37 +3 -11 -94 -21 +67 -1 +89 +11 -27
-7 +11 -25 -20 -35 +51 -37 +35 -2 +0 +87 -56 -45 +43 +67 -34 -88 +63 -52 -22 +70 -59 -23 -71 +59 +100 +93 -76 +94 -21
-14 +24 +36 -18 -46 +6 +59 -10 -19 +65 +99 -43 -2 +80 +95 +76 +38 -25 -63 +65 +12 -80 -72 +78 -49 +91 +88 +99 +6 -21
-74 +7 -79 -84 -11 +63 -23 -63 -42 -52 +7 +75 +56 +95 +19 -27 +89 -61 +2 +41 -94 +39 -19 +19 +14 -54 -79 -86 -95 -64
-27 +88 +30 -33 +21 -41 -33 -2 -69 -48 +97 +68 +6 -42 +42 -52 +94 +76 +51 -68 +0 -50 -24 -39 +98 +20 -23 -93 +92 -98
-68 -23 +32 +23 +14 -56 +1 +31 +66 -72 +2 -94 +94 +22 +90 +25 -22 -90 -66 +95 -62 -57 +83 -6 -88 -30 +45 +78 +50 -37
+35 -95 -31 +49 +82 +99 -1 +54 -44 -99 -14 +25 -24 +93 +29 -53 -67 +19 +44 -81 -89 -69 +17 -89 +39 -66 +38 -82 -16 +35
--- BASE SOLUTION ---
[-4, -93, 35, 73, 90, 75, 34, 23, -35, 30, -99, -76, -60, 7, -22, 46, 64, 98, 58, 85, 9, -56, -7, -94, 59, 91, -79, -93, 50, 35]
[0, 32, -45, 3, -73, -45, -90, 87, -50, 92, -80, 12, -8, 98, 3, 51, -36, 51, -54, -11, -58, 76, 15, 75, 51, -46, -84, 30, -23, 35]
--- MY SOLUTION ---
[-4, -93, 35, 73, 90, 75, 34, 23, -35, 30, -99, -76, -60, 7, -22, 46, 64, 98, 58, 85, 9, -56, -7, -94, 59, 91, -79, -93, 50, 35]
[0, 32, -45, 3, -73, -45, -90, 87, -50, 92, -80, 12, -8, 98, 3, 51, -36, 51, -54, -11, -58, 76, 15, 75, 51, -46, -84, 30, -23, 35]
236 == 236
Worked.
TEST CASE: 31
----------------------------------------
31
-38 +28 +55 +45 +93 +95 +38 +0 -27 -33 +65 +52 +3 +75 -24 -46 -11 +11 +55 -76 -9 -82 -27 -47 -51 +81 -58 -11 -22 -49 +28
-49 +79 +62 +50 -85 +20 -32 +12 -45 -20 -40 -64 -64 -33 +48 +11 +36 +15 -8 +81 -48 +2 +86 +22 -26 +91 +88 -48 +81 +79 +37
-86 -79 -67 -27 -100 -84 -76 +90 -24 -74 +20 -91 -38 -78 -94 +14 +54 -16 +22 -32 -53 -95 -2 +11 -6 -85 -46 +96 -82 +53 +74
+31 +48 -16 -89 -41 +33 +0 +16 +44 +59 -38 +31 +17 -97 -32 -64 -7 +68 -23 +26 +56 -87 +14 -86 +15 -2 -79 +42 +58 -55 +3
-33 -13 +33 -16 -62 -23 -68 -86 +50 -34 +92 -84 +28 +55 +68 +49 +83 -100 +14 +12 +35 +15 -97 -96 +48 -18 +27 +4 +8 -48 +84
-45 +51 -20 +46 -50 -48 -11 +99 -53 -57 -97 +20 -89 +43 -91 -8 -35 +51 -1 -82 -35 +86 -20 -61 -51 -6 -88 -93 +67 -91 +14
+56 -39 +23 -62 +18 -42 +72 +58 -95 +2 -78 +52 +83 +46 -69 -76 +76 -44 +10 +76 +29 +57 -92 +83 -80 -83 +84 +19 -2 -90 +84
-53 -18 -60 +31 +28 -43 +5 +40 -3 -24 +1 +70 -99 +8 -12 +83 -42 +15 -35 -63 -77 -94 -89 +98 -90 -67 +4 -94 -19 -1 +56
-20 -81 +85 -88 -17 +62 +89 +40 -22 +69 -90 +45 -58 -28 +98 -42 -75 -29 +45 +1 -83 +55 -87 -98 +33 -30 -42 +35 +96 -80 +78
-88 +30 +44 -70 +52 +88 +95 -86 -5 -10 +24 -99 -80 +75 -88 -95 -55 +16 -12 -26 +90 +91 +69 -93 +75 -60 +83 +37 +61 +92 +61
-75 +90 +34 -1 +42 -52 +89 -43 -20 -93 +88 -43 +40 +41 -87 +81 -90 -81 +27 +92 -62 +46 -39 +20 -70 +54 +89 -64 -91 +4 +88
+71 -57 +29 +38 -24 -74 +57 -26 +10 -62 -45 +78 +93 +67 -29 -87 +54 +82 +78 +1 +96 +66 -20 -18 +4 -17 -98 +71 -23 +53 +55
+20 -52 -44 +9 -68 -95 +42 -13 -7 -9 +68 -9 -76 -28 +43 -53 -53 +0 -6 -97 +95 -85 -57 -78 -38 -85 +72 -19 -84 -45 -14
+78 +6 -2 +23 -19 +44 +1 -23 -64 +50 -37 -54 +23 -27 -10 -79 +61 +34 -44 -82 +45 -48 +72 -63 +97 -21 +74 -6 +2 +91 +85
+7 -76 -9 +2 +99 +63 -88 -60 -63 -15 -60 -33 +11 +47 -78 +41 -77 -37 +93 -45 +45 +59 +43 -95 +49 +48 -65 -62 +60 +59 +69
-6 -89 +45 -58 -49 -3 +5 -21 +85 -34 +99 +87 -79 +34 +4 -54 -73 -55 +36 +22 +87 +59 +32 +2 -83 -25 -59 -5 +30 +25 +89
+0 +42 +34 +7 -13 +95 +72 +39 -38 -41 -74 +2 +82 +58 +96 +81 -19 -38 +23 -42 -33 -78 -17 +49 +38 +27 -86 +58 -30 +83 -84
+50 -11 -45 +88 +84 +62 -57 +17 -76 +26 -59 -91 +71 +12 -75 +99 +88 -95 -25 +84 +18 -18 +82 -14 +37 +51 +53 +28 +14 -5 -24
+85 -26 -73 -58 -86 +8 -72 +93 -73 +22 +49 -22 +36 -33 -66 -60 +59 +73 -98 -59 +92 -52 -73 +80 +41 +35 -27 -72 +29 +1 +75
+83 +74 +37 -82 -46 +28 -69 +54 +34 +22 +77 -61 -2 -96 +65 -98 -45 -76 +71 +13 +79 -11 -6 +78 +50 -36 -78 -23 -63 -23 +81
+41 +46 -87 +42 -69 +11 +20 +50 +31 -53 +70 -91 -9 +24 -11 -97 +90 +21 +58 -88 -83 -95 -8 +51 +2 +60 -60 -95 +35 +51 -24
-68 -45 -81 -1 -89 +55 -77 +53 +67 +0 +68 +69 -31 +18 +70 -64 +54 +66 -72 +32 -7 +45 -3 -53 -29 -83 -60 -35 -76 -47 +83
+86 -77 +26 +48 +28 -12 -41 -28 -89 +54 +82 +0 -34 -89 +9 +97 -17 +80 -19 -64 +23 -95 -43 +90 +20 -69 -20 -47 -20 +77 +17
-18 -16 -97 +97 -31 -17 +3 -32 +86 +91 -73 +100 +54 +46 +99 +23 -83 +80 -93 +51 -30 +100 +38 -24 -27 +16 -11 +24 +96 +61 +67
+99 +22 -88 -89 -87 +79 +48 +73 -86 -4 -90 +29 +87 +35 +53 -64 -92 +64 +17 +37 +25 -70 +28 +68 -18 -47 -61 +66 +91 -12 +98
-40 -6 -11 -33 +53 +40 +97 -29 -74 -37 +18 -7 -40 +76 -19 -58 +78 -34 -69 -95 -27 -10 +51 +65 +47 -87 -61 +70 +59 +67 +26
+42 -97 -17 -6 -49 -63 -78 -76 -68 +27 -43 -74 -54 -63 +70 -61 +19 -20 +29 -57 +89 +64 +51 +16 +10 -80 +85 -68 +71 -22 -87
+54 +50 +79 +33 +91 +11 +55 -2 -67 +26 -5 +45 +25 +40 +87 +70 +4 -53 -74 +41 +55 +57 +58 -27 +30 +84 +58 +46 -13 -84 +82
-32 -7 -74 -70 -33 -56 +57 +32 +37 +26 +26 +28 -15 +82 +54 +100 -88 -62 -98 -59 -25 -74 -86 -16 -71 -43 -72 -7 -73 -22 +24
+84 +0 +38 +65 -20 -77 +68 +41 -94 +85 +0 +44 +100 +94 +77 +51 +27 -68 -63 +28 -17 +61 -91 +99 -99 +48 -70 -86 +1 +6 +6
+48 -22 -43 -83 -46 +61 +34 +72 -4 +48 -48 -71 +39 -1 -54 +18 -57 -50 +21 +14 +35 -72 -33 -97 +21 +91 -63 -64 +83 +19 +61
--- BASE SOLUTION ---
[-38, 79, -67, -89, -62, -48, 72, 40, -22, -10, 88, 78, -76, -27, -78, -54, -19, -95, -98, 13, -83, 45, -43, -24, -18, -87, 85, 46, -73, 6, 61]
[28, 79, -82, 42, 27, -6, -80, 98, -87, 91, -62, 1, -6, 34, -77, -54, 96, 12, 36, -61, 70, 0, -89, -32, 48, 40, -49, 33, -74, 0, 48]
--- MY SOLUTION ---
[-38, 79, -67, -89, -62, -48, 72, 40, -22, -10, 88, 78, -76, -27, -78, -54, -19, -95, -98, 13, -83, 45, -43, -24, -18, -87, 85, 46, -73, 6, 61]
[28, 79, -82, 42, 27, -6, -80, 98, -87, 91, -62, 1, -6, 34, -77, -54, 96, 12, 36, -61, 70, 0, -89, -32, 48, 40, -49, 33, -74, 0, 48]
522 == 522
Worked.
TEST CASE: 32
----------------------------------------
32
-25 -85 +30 -25 -47 +56 +10 +30 -33 +88 -55 -66 -91 -82 -83 +24 -57 -96 -84 -7 +26 -76 -42 -34 +55 -25 +52 +12 +67 -81 +55 +80
-65 -39 -89 -46 +59 -4 -79 -79 -84 -85 -95 +65 -93 -97 -14 -37 -96 +57 -100 -24 +42 +96 +26 +56 -96 -33 -66 +24 +13 -98 -65 -78
+6 -89 -88 +99 +40 +33 -71 -6 -46 -84 +17 -74 -10 +62 +10 -24 +47 +0 +95 -36 -36 +10 +22 -89 -4 -79 +20 -70 +4 -5 -4 -68
-19 -48 -13 +62 -58 -82 -85 +20 -29 -85 +67 +61 -22 +77 -14 +32 -23 -1 -49 -19 +56 +59 -48 +60 -36 -65 +70 +18 +61 -14 +60 -1
+17 +85 +88 +61 +82 +74 +16 +64 -15 -21 +41 +97 -50 +85 +97 -10 +27 -83 -39 -44 +27 -41 -41 +7 +54 -100 +92 -51 +3 -36 +41 +26
-6 -77 +55 -43 +72 -72 -19 -7 +33 +84 +52 -89 -29 -3 -68 -71 -78 +39 +25 -72 -63 +6 +94 +64 +44 -64 -6 +89 +3 +96 +38 +98
+92 -9 -43 +88 -73 +91 +51 +20 -81 -94 +48 +17 -9 +61 +10 -58 -39 -47 -78 +9 +68 +50 -87 +93 +15 -3 -48 +88 +99 +71 -1 +35
-55 +31 +0 -69 -14 -61 +36 -5 +2 +15 +3 +62 -50 -72 -15 -31 +69 -35 -37 -28 -90 +35 +7 +99 +71 -12 -98 +38 +59 +44 +35 -94
+4 +61 -84 +91 +19 -99 +31 -30 -50 +18 +67 +27 +9 -4 +100 +73 -14 -85 +98 +96 +26 -21 +77 +40 -45 +99 +16 +55 +46 +68 +80 -88
-76 -49 +28 +99 -37 -4 +79 +63 -15 +59 +87 +94 +22 -83 -83 +100 +24 -88 -54 +35 +15 -34 -63 +81 +16 -60 -46 +19 -8 -15 +72 -1
+47 +89 +57 -12 +42 -59 +23 -18 -65 +90 -33 +13 +62 -10 +61 +54 -34 -9 +94 -69 +41 -26 +28 -37 +54 -82 -88 +46 -68 -49 -14 -18
-43 -23 +72 -5 +59 +58 +58 +91 -70 +18 +24 -60 -79 +5 -20 -57 -84 -6 +6 +53 +2 +8 -81 -91 -44 +65 +59 +55 +98 +5 +100 +8
-39 +96 -49 -85 -100 +39 -22 -68 -97 +90 -87 +89 -71 -47 -100 +42 +47 -55 -74 +26 +54 +58 +65 +68 +71 +19 -54 +21 +65 -83 +6 +15
+62 -37 -51 -68 -93 -34 -50 +67 -90 +59 -62 +88 +73 +14 -21 +38 -98 +68 +35 -81 +15 -30 -60 +35 -8 -73 -69 -33 +17 -83 +39 -62
+96 -81 -45 +61 +86 -47 +40 -2 -80 +26 -75 -8 +26 +17 -75 +63 -26 +22 -52 +35 +54 +18 -21 -55 -8 -81 -84 -9 +30 +68 -17 -22
-46 -73 +96 -59 -32 -94 +17 +36 +45 -47 +64 -24 -83 +54 +90 -44 +16 -83 -57 -55 -76 -54 +67 -50 -9 +6 -89 +66 -9 -35 -47 -36
-32 +15 +57 -10 +100 -69 +84 +92 +38 +18 +46 +4 -77 -13 +43 -34 -47 -70 -95 -74 -90 -11 +81 +45 -27 +20 +72 -79 -49 +61 +88 -48
-62 +8 -29 +2 -32 -34 -7 +89 -20 +44 +58 +99 -88 -50 +14 -71 +45 +17 -97 -85 -55 +10 +10 -57 -58 -42 -58 +51 +65 -48 -19 +75
+80 -91 +62 -61 +78 -71 +8 -42 +56 +23 +70 +44 -54 +30 -82 -56 -33 -14 +92 -61 +63 -57 +74 +13 +69 +73 -51 -7 -84 +23 +71 +66
-85 -1 +99 +97 +99 +66 -81 +70 -71 +12 -51 +30 +22 +41 -45 +59 -55 -5 +61 -21 -34 -88 +64 +98 +31 -81 -8 +30 -54 +87 +7 -12
-13 -25 -72 -16 +55 -2 -83 -29 -79 -9 +57 +67 -13 +39 +63 -8 -40 -68 +21 -27 +6 +100 +94 -70 -27 +24 +10 +28 +84 +12 -96 -82
+35 +94 +85 +11 +55 +67 -35 -68 +96 -80 -71 -21 +64 +85 +59 +72 +93 +16 -41 +71 -36 -29 +39 +46 +100 +23 +15 +56 +61 +9 -82 +8
+32 +3 -65 -31 -81 +32 -75 +41 -90 +73 -62 -83 +94 +85 -26 +50 -53 -35 +93 -96 -96 +46 -81 -29 -14 +71 +37 +31 -44 +69 -98 +86
+42 -49 +22 -56 -25 +37 +75 +82 -91 +52 +61 +50 +92 -26 +34 +20 +93 +74 +5 -32 +12 -51 -12 -23 -33 -16 -13 -10 -9 -57 -82 +36
+25 -1 -93 +45 +70 +58 -37 +83 +4 -54 +63 +56 -8 +47 -56 -72 +47 +92 -71 +49 +82 -41 +99 +71 -30 -79 -71 -84 +4 -73 +34 +72
-58 -39 +10 +29 -23 +8 -73 +60 +92 -25 -91 -31 +72 +67 +100 +89 +75 -75 -52 -58 -31 -65 -52 +3 -55 +10 -88 +57 -8 -83 +12 +49
+32 -37 +47 +77 +43 -11 -49 +31 -79 -95 -57 -18 -42 +11 -49 +0 +34 -65 -78 -14 +24 -15 +0 +52 +64 +68 +96 +39 +6 +74 -40 -97
+36 -80 +9 -53 -53 -30 -80 -91 -88 -2 -64 -16 -93 -96 +68 -84 +30 +56 +15 +57 -54 -94 +13 +43 -48 +28 -80 +77 -36 -25 +31 +13
-96 +70 -5 +37 +92 -24 -79 +14 +40 -92 -74 -93 +50 -10 -96 +83 -49 +34 +21 +8 -21 -3 -70 -4 -91 +15 -13 -69 -91 -91 -83 -17
+26 +36 -39 +91 +79 +27 +90 -67 -47 -10 +63 -7 -68 +16 +59 -8 -17 +22 -26 -62 +53 -36 +98 +13 +27 +5 +90 +80 -59 +33 -10 -4
-97 -31 -85 -66 -28 +81 +39 +92 -68 -47 +65 +2 +61 +55 +81 -19 +33 -13 +59 +86 +60 +32 +16 +17 +91 +2 +78 +61 -45 -39 -48 +90
+13 -39 +73 -58 -73 +42 +53 -4 +42 +58 +20 +5 -76 +60 +39 +76 +58 +66 -32 -12 +31 +74 -90 -55 -42 +22 +48 +72 +65 -42 -83 +46
--- BASE SOLUTION ---
[-25, -39, -88, 62, 82, -72, 51, -5, -50, 59, -33, -60, -71, 14, -75, -44, -47, 17, 92, -21, 6, -29, -81, -23, -30, 10, 96, 77, -91, 33, -48, 46]
[80, -65, -5, 61, -51, -6, -3, 71, 40, -63, -26, 2, 26, 35, 22, 16, -34, 14, 30, 22, 67, -71, 73, -91, 83, -73, -11, -53, 37, -39, -31, 13]
--- MY SOLUTION ---
[-25, -39, -88, 62, 82, -72, 51, -5, -50, 59, -33, -60, -71, 14, -75, -44, -47, 17, 92, -21, 6, -29, -81, -23, -30, 10, 96, 77, -91, 33, -48, 46]
[80, -65, -5, 61, -51, -6, -3, 71, 40, -63, -26, 2, 26, 35, 22, 16, -34, 14, 30, 22, 67, -71, 73, -91, 83, -73, -11, -53, 37, -39, -31, 13]
357 == 357
Worked.
TEST CASE: 33
----------------------------------------
33
-71 -55 -1 -99 +51 -51 -48 +60 +28 +35 -11 +47 -23 -31 +47 -70 -95 +9 +65 +16 +88 +49 +32 +37 +15 -28 -32 +91 -33 +80 +84 -80 +25
-63 +46 -44 -41 -56 +9 +93 -83 -56 -22 +62 +50 -27 -36 -10 +93 +65 +6 -80 +13 +36 +10 -3 -61 -33 -76 +8 -66 +13 +25 -72 +71 +22
-100 +0 -46 -75 -9 +10 +46 -96 +6 +34 -73 +64 -49 +17 +61 +65 -79 +24 +57 +13 -94 -91 +100 -83 +12 +77 -75 -66 +91 +83 -71 -57 -74
-70 -2 +71 +44 +79 -45 +49 +1 -87 +28 -61 -92 +22 +2 +97 -7 +10 -69 -88 +53 +89 +39 -67 -55 +3 -57 +20 +77 -53 -98 +92 -51 +84
+33 +26 -50 +64 -64 -23 +73 +30 +21 +42 -58 -60 +29 -6 -29 -76 -8 +15 -60 +30 +3 -46 -24 +64 -77 +19 -56 -39 -94 +78 +63 -46 +23
+48 +90 -74 +32 -39 -23 +8 +85 -73 -72 +28 -27 +90 +1 +27 -100 -79 -88 -53 +52 +74 -43 +74 -22 +60 +77 +52 +6 -93 -47 -45 +46 +95
+94 +87 +51 -77 -93 +13 +26 -61 +29 +7 -63 +92 +40 +3 -33 -100 +36 -89 +61 -5 -93 -65 +70 -10 +96 +4 -40 +72 +31 +88 -69 -76 +40
+74 -82 +60 +14 +76 -56 -83 -20 -23 +86 -14 -50 -90 -44 -35 +32 +70 +4 -99 -93 +72 +17 +79 +92 +98 +95 -85 -37 +86 -1 +74 -59 +71
+8 -19 +38 +96 +47 -29 -70 +99 +8 -8 -95 +41 +86 +11 +63 +38 +26 +11 -60 -12 -90 +42 -58 -51 +68 +89 +100 -15 -22 -48 -10 -72 -29
+76 -98 -46 +59 -69 -51 -30 -2 +64 -100 -23 +39 -26 +95 +40 +33 +63 -17 +19 -27 +11 +35 +19 -16 -57 -92 -30 -85 -64 +96 -33 -42 -34
-14 +76 -15 +64 +70 -57 +5 -1 -34 -30 -86 -98 -76 +88 -50 -92 +1 -86 +21 -13 +23 -5 +38 -6 +88 +35 +53 +18 +66 -16 +7 +60 -84
+33 -88 -44 -12 -86 -58 +21 -63 -16 +77 +98 +38 +55 +74 +66 +47 +11 -3 +99 +6 +37 -27 +8 -55 +61 -13 -59 +72 -58 +89 -27 -77 +23
-12 +50 -46 -40 -99 +21 +31 -76 -96 -70 -50 -53 +30 -74 +59 +85 +22 +0 +94 +80 -1 -45 -38 -47 +19 -40 -24 -50 -21 +6 +36 -2 -46
+53 -41 -59 -82 +97 +95 +25 -89 +31 -69 +60 -70 -87 +86 -76 +73 -59 +64 -68 +76 -53 +39 -97 -20 -6 +92 +65 +31 +73 -14 -75 -34 +17
-40 +74 -10 -1 -77 -63 -72 +77 -22 -80 +90 -82 -45 +98 +27 -20 -94 -54 +72 -92 -22 -63 -6 +83 -19 +44 +83 -73 +92 -26 +73 +17 +56
+100 +59 -50 -2 -66 +83 -26 -23 +7 +87 -46 -85 -94 -45 -3 -99 -60 -63 -66 +77 -8 +10 +62 +59 -83 -49 +21 +48 +7 +74 +50 +88 -72
+63 +36 -65 -11 +51 +59 -6 -54 +93 +27 +56 +14 +53 -30 -47 -69 +35 +90 -45 +96 -45 -73 +19 +57 +79 -93 -47 -13 +17 -19 -72 -45 +85
+42 -99 +89 -2 -60 -52 -83 +44 +98 +28 -25 -71 -97 +76 +30 -17 -57 -27 +46 -89 -88 +56 +36 +52 +36 +87 -70 -96 +51 +68 -6 +92 -78
-78 -95 -70 +98 -2 -45 -8 +23 +20 -100 -43 -42 -17 -56 +45 -5 -100 -61 +16 +64 -58 -25 +61 +3 -92 -97 +68 +52 +0 +3 -46 +1 -60
-20 -80 +74 -24 +10 -50 -68 -7 +43 -76 -7 +43 -61 -54 +50 -78 -100 -27 +42 -64 -47 +23 +2 -75 +9 -3 +85 -42 -66 -25 -60 -3 -29
-61 -42 -50 +64 +14 +8 -38 -72 +79 +64 -45 +53 +53 +57 -76 +29 +21 +48 -55 +46 +48 +72 -99 +25 +70 -20 +67 -54 +80 +32 -29 +64 -89
+85 +49 +80 +66 +13 +58 +66 -11 +92 +33 -90 -95 -51 +60 -53 +73 +2 -21 +100 -81 +32 -6 +69 -83 -39 +75 -32 -69 -8 +61 +96 +1 +74
+6 -4 +59 -47 -89 -32 +63 +85 +31 +57 -64 +89 +97 +60 +17 +73 +73 -92 +35 -29 +80 -19 -25 +87 +100 -63 +76 -4 +77 +20 -64 -52 +39
-82 +52 -81 -92 -62 +38 +18 +58 +99 -28 +11 +38 +32 +58 +5 -2 +6 -59 +59 +68 +97 +3 +21 +55 +23 -27 -81 +39 -17 -60 -18 +51 +20
+19 +93 +41 -88 -71 +27 -94 +41 -34 +11 +77 +95 -50 -96 +80 -34 -47 -12 -38 +57 +98 +39 -60 -81 +77 -29 -85 +44 +34 +94 +10 +29 +67
-33 -51 +65 +16 -12 -95 -70 -78 +55 +100 +3 +91 +44 -99 -6 +0 -55 -79 -56 -32 +75 +67 +9 +76 +42 -73 -100 +82 +97 +23 +4 -28 -51
+57 -25 -90 +81 -16 +27 +25 -93 +82 +58 +16 +37 -61 +23 -52 -89 +58 +64 -68 -66 -20 -64 -18 -23 +73 +98 +31 +24 +18 -28 +48 +82 +8
+95 -82 -77 +12 -6 +94 +21 +17 +14 -92 +68 -9 +46 -46 -65 -47 -52 +90 +24 +33 +94 +25 -9 -8 +7 +95 +72 -16 -53 -69 -19 +67 -6
-64 +33 +33 -54 +43 +89 +67 +98 +13 +92 -30 -56 +4 +78 -98 -14 -82 +97 -17 -92 -75 -85 -30 +76 -14 -96 +66 +30 +34 -89 +13 +94 -31
-72 +47 +2 +3 +70 -60 -62 -44 -32 +2 +33 -91 -23 +60 -41 +18 -15 -84 +92 -12 -3 -94 -10 +77 -89 -59 -63 -79 +50 -83 -52 -3 +11
+75 +26 -7 -56 -68 +78 -2 +3 -31 +69 -11 +7 +100 -90 -27 +56 +18 -66 -83 +31 +18 -58 +23 -36 +7 +18 +32 -92 +26 +97 -46 +61 -75
+20 +30 +19 +84 +16 +7 +8 +20 -95 +74 -1 +17 +9 -68 +7 -43 +3 -48 +61 -62 -22 +23 +55 +41 -56 +72 +85 -97 -19 +98 +15 +52 -40
+66 +98 +26 +5 -72 -62 -95 +58 -94 +74 +23 -61 -82 +40 +11 -57 -9 -49 -42 -20 +35 +84 -88 -23 +1 -100 -51 +17 +26 -67 -18 -11 +86
--- BASE SOLUTION ---
[-71, 46, -46, 44, -64, -23, 26, -20, 8, -100, -86, 38, 30, 86, 27, -99, 35, -27, 16, -64, 48, -6, -25, 55, 77, -73, 31, -16, 34, -83, -46, 52, 86]
[25, 71, -71, -98, -94, 6, -40, 95, 68, -16, 38, -27, -1, 76, 72, -63, 35, -17, 45, -54, 53, -95, -64, -28, -34, -78, 25, 94, 43, 3, -7, 30, 66]
--- MY SOLUTION ---
[-71, 46, -46, 44, -64, -23, 26, -20, 8, -100, -86, 38, 30, 86, 27, -99, 35, -27, 16, -64, 48, -6, -25, 55, 77, -73, 31, -16, 34, -83, -46, 52, 86]
[25, 71, -71, -98, -94, 6, -40, 95, 68, -16, 38, -27, -1, 76, 72, -63, 35, -17, 45, -54, 53, -95, -64, -28, -34, -78, 25, 94, 43, 3, -7, 30, 66]
168 == 168
Worked.
TEST CASE: 34
----------------------------------------
34
+11 -88 +72 -79 -62 -29 -40 -36 -6 +5 +83 -92 -48 +96 +91 +69 -25 +50 -74 +4 +24 +42 +47 +90 +2 -47 +95 +35 +70 +82 -82 +22 -43 +82
+25 -70 +54 +67 +21 -88 -48 -70 +17 +58 -43 +23 +3 -49 -95 +18 -89 +100 -25 +58 -7 +16 +9 +82 +28 -43 -95 -61 -88 -69 -20 -94 -1 +19
+98 -88 +67 +39 -64 -46 +36 -72 +28 -60 +73 -80 -71 -69 -52 -70 +50 +57 +18 -24 +45 -66 +40 +32 +98 +30 -29 -18 -43 +88 -21 +14 -33 +21
+13 +86 -97 -54 +7 +61 +26 +87 +4 +97 +22 -96 -56 +85 +92 +59 -12 -71 -72 -85 -75 +28 -32 +13 +65 -77 +17 -67 -13 +30 -39 -35 +16 -84
-21 -83 -79 +19 +70 +48 -76 +35 -45 -61 -3 -15 -82 +32 -31 +90 -92 +83 -68 +41 -46 -3 +27 -42 -98 +84 +25 +52 +10 +6 +16 +34 +22 -31
-16 -98 +56 -82 +26 +12 -52 -54 +63 -35 -58 -72 +61 -82 +0 -31 +48 -66 -47 -38 +43 +17 +46 -98 -35 -49 +63 -22 +13 +69 +39 +28 -32 +19
+31 +83 +15 -36 -38 -28 -65 +84 +91 +22 -52 +68 +68 -66 -15 +79 +48 +46 -21 -12 +19 +63 -33 -14 +7 -21 +15 -7 -94 -98 -29 -28 -79 -28
+68 -32 +82 -32 +90 -10 -80 -51 -21 -62 +43 -44 +90 +18 -44 -62 -86 +60 -22 -20 +60 -90 +69 -75 +44 -78 +39 +13 -56 -7 -65 +59 +98 +65
-64 +20 +61 +12 -14 +67 +98 -95 -55 -20 +85 +5 -59 +37 +14 +84 +73 -61 -72 -91 +62 +43 +81 +59 +65 -42 +22 -15 +12 -35 -79 -93 -7 +42
-26 +93 +100 +3 -38 +63 +17 -59 +74 -3 +43 +11 -61 -76 -65 -95 +60 -34 -33 -36 +18 +18 -52 -39 +5 +77 +62 -14 +2 +55 -39 +20 +75 -18
+79 +57 +28 -36 +8 -69 +5 +53 +69 -68 +33 +18 -18 +23 +52 +24 +11 +46 -3 +10 +46 +4 -54 +39 -11 -57 -27 +5 -45 +69 +93 -24 +48 +27
-1 -98 -96 +63 +21 -98 +78 -60 -48 +8 -84 +18 +57 -97 +69 +15 +21 -35 +6 +36 +88 -11 +75 -30 -67 -95 -18 +79 -37 -16 -99 -65 +57 -19
+63 -47 -11 +3 +12 -42 +25 -30 -89 +82 -100 -84 -81 -53 -33 -17 +8 +37 -61 +83 +30 -60 +65 +24 +1 -97 +41 -35 +18 +91 -18 -77 -94 -19
+5 +37 -6 +7 +42 -43 +98 +97 -82 -100 -66 -18 -22 -55 -48 +46 -39 +61 -16 -41 -65 +87 -95 -10 -56 -57 -85 +100 -71 -79 +70 +56 -8 -9
-35 +33 -67 -48 +7 -76 -53 +4 +90 +23 +56 +20 -82 +16 -42 +34 +34 +48 -14 -6 +65 -29 -86 -4 +0 +71 +58 +89 +23 +1 -69 +74 +46 +54
-97 -21 +50 +75 -20 -49 +76 +46 -42 -46 +96 -59 -86 -85 -11 -99 -56 +4 -52 -85 +61 +27 +71 +31 -86 +57 +77 -68 +77 -45 -3 +59 +22 -83
-25 -20 -16 -8 +68 +45 +60 +92 -60 +46 +31 -24 -11 -23 +22 -92 +17 +62 +53 +17 -6 +12 +29 -16 -73 +13 -89 +93 -26 +32 -69 +62 +80 -65
+37 +82 -54 -71 +50 +59 +94 +75 +86 -64 -64 -67 +41 +90 +17 +7 -98 +43 -62 +91 +68 +32 +39 +36 +69 +74 -44 -34 +38 -15 -3 -53 -85 -68
+64 -1 -37 +92 +73 +3 +89 +70 +92 -2 -35 -55 +58 +84 -72 +4 -92 +17 -19 +88 -66 -44 -22 -39 +83 +87 -5 -10 +7 -97 -59 -92 -25 +56
+45 +85 -27 -6 -66 -48 -56 +82 +32 +69 -86 +47 -79 -98 +75 +34 +3 +96 +93 -80 +57 -73 +6 -99 -83 +48 +25 +64 -56 -83 -17 +27 +22 +65
+52 -76 -51 +56 +68 +75 -87 -40 +53 -70 +82 +12 -77 +43 -53 -39 +94 +24 -55 +40 +33 +78 +60 -93 +4 +92 -19 -46 +73 +2 +1 -76 +93 +0
-58 -12 -32 -48 -53 -28 +43 -23 -11 +2 +38 -76 -74 +76 +2 +83 -24 +38 +21 +21 +56 +46 +41 +52 -77 -37 -99 +66 +100 +6 -82 +50 -18 +76
-52 -78 -46 +86 +77 +72 -95 +59 -35 -9 +24 -31 +29 -76 -84 +85 +32 -87 -57 -67 +13 -72 -83 +18 +100 +59 -10 +91 +92 -76 +43 +38 +30 +38
-37 -24 +37 -22 +17 -66 +36 +74 +5 +51 +63 +41 -33 +0 +89 +78 +12 +54 -57 -77 +57 -28 +56 +2 +43 -95 +88 -82 +83 -95 -50 +0 -53 +97
+27 +35 -15 +31 -31 +32 -55 -70 +94 -80 +27 -91 -51 -64 +54 +83 -14 +37 -93 +3 +92 -48 -15 -17 -74 -46 -24 -92 +81 -64 -64 +76 +54 +0
+9 +35 +83 +26 +59 -63 -49 -87 +81 +78 -22 +75 +0 +2 +37 +93 +23 +16 +78 -32 -99 +77 -32 -15 -69 -48 +46 +27 -100 -5 +24 -51 -79 +58
-96 +3 -75 +72 -7 -50 -16 +35 +81 +51 -87 +73 +48 -64 -70 +79 +5 -24 +39 -32 +41 -29 -67 -22 -79 -57 -50 +96 -35 +14 +4 +30 +57 +85
+86 +10 -74 +24 +46 +19 +71 +53 -83 +84 -2 +93 +20 +78 +79 -26 +11 +57 -72 -93 +38 +78 +9 +35 +24 -85 +62 -83 +17 -57 -36 +3 +5 -58
-29 -20 +58 -75 +91 +30 -60 +98 -21 -30 +21 -19 +87 -16 -11 +100 +94 -66 +12 -51 +35 +7 +40 +90 +54 +100 +26 -32 -29 -38 +50 -78 -59 +73
+19 -63 +3 +14 -34 +32 -92 -14 +9 +13 -99 -29 +87 -67 +25 +11 +76 -33 -52 -78 +25 +2 +71 -79 +54 -100 +49 -64 +29 -95 -99 -65 -28 -46
-43 +58 +75 +76 +63 -100 +48 +8 +15 -61 -97 -37 -27 -95 +0 +36 +19 -51 +51 +67 +1 -2 +15 -17 +30 -12 -90 -28 -90 +23 +100 +40 +92 -24
+38 -26 +77 +67 +80 -8 +71 -18 -76 -52 -7 -44 -20 +42 -28 -24 -71 -8 +55 -39 +86 -86 -4 -78 +62 -70 -83 +17 +89 -77 -69 +98 +21 +55
+39 +34 +67 -90 +49 -88 -58 -69 -83 +97 +30 +31 -40 +17 +3 +75 -38 +26 +19 +80 +22 -80 -22 -46 +71 +35 -85 -100 +4 +68 +54 +58 +58 +46
+50 -8 +54 -66 +72 -21 -7 +7 +59 +92 -51 -63 +66 -59 -5 -68 +4 -31 +50 +25 -16 +28 -89 +99 +77 -8 -42 +22 -13 +65 +9 +77 +51 -8
--- BASE SOLUTION ---
[11, -70, 67, -54, 70, 12, -65, -51, -55, -3, 33, 18, -81, -55, -42, -99, 17, 43, -19, -80, 33, 46, -83, 2, -74, -48, -50, -83, -29, -95, 100, 98, 58, -8]
[82, -1, 14, -39, 6, 13, -7, 39, -42, 5, 39, 75, -60, -65, -6, -52, 62, -98, 4, 75, 43, -74, -31, 63, -80, 81, 35, 71, 30, -34, 76, 77, 34, 50]
--- MY SOLUTION ---
[11, -70, 67, -54, 70, 12, -65, -51, -55, -3, 33, 18, -81, -55, -42, -99, 17, 43, -19, -80, 33, 46, -83, 2, -74, -48, -50, -83, -29, -95, 100, 98, 58, -8]
[82, -1, 14, -39, 6, 13, -7, 39, -42, 5, 39, 75, -60, -65, -6, -52, 62, -98, 4, 75, 43, -74, -31, 63, -80, 81, 35, 71, 30, -34, 76, 77, 34, 50]
921 == 921
Worked.
TEST CASE: 35
----------------------------------------
35
-93 -61 +91 +78 +6 +72 -91 +15 +39 -22 -30 -39 -88 -68 +33 -33 +51 -98 -18 +75 +60 +90 +30 -39 +23 -57 +21 +2 -45 -75 +53 -67 -54 +60 +69
+5 -24 +27 -85 -53 -20 -41 -52 +37 -96 +84 -41 +19 -76 -29 -32 +32 -7 -46 +65 +80 -50 -45 +13 +76 +75 +57 +67 +70 -63 +43 -91 -73 -33 -43
-13 -30 -22 +94 +22 +17 +44 -76 +55 +77 +34 +44 -70 -68 +57 -86 +13 +0 -39 -43 +16 +37 +53 -26 -91 +5 +24 +48 -4 -95 +98 -54 +40 -38 -92
+57 +5 +53 -12 +52 +75 -24 -57 +74 +37 -32 -14 +84 +0 -75 -41 +1 -92 -20 -79 -41 +10 +89 -3 -16 -24 +32 -95 -40 +4 -23 -98 -49 -80 -100
-33 -38 +53 -61 +88 -25 -52 -24 -27 -83 -32 +79 +12 -61 -32 -86 +82 +6 +85 -42 +64 -18 +26 -45 -30 +67 -97 +65 +55 -2 +82 -62 +3 -23 +48
-6 +9 +92 +23 -89 +66 -48 +88 -70 -31 -22 +62 +54 +29 -34 +14 +11 +50 -43 -41 +16 +65 +57 +8 +32 +51 -95 -57 -43 -41 +15 +74 -32 +19 -64
-14 +68 +33 +52 +76 +35 -56 -89 -4 +10 -39 -47 -68 +47 +93 -82 -39 -98 -66 +42 +22 +80 -87 -88 -78 -40 -69 -89 +58 +59 +11 -3 -24 -87 +19
+78 -60 -51 +99 -52 -91 +34 -5 +25 -28 +28 -77 +1 +58 +82 +39 +90 -20 +35 -97 +74 -21 +14 -83 +50 +37 +40 -72 +94 +43 +52 -25 +38 +58 +97
-84 +48 -56 -62 +30 -25 +52 -42 +43 -43 -14 +29 -97 +98 -89 -20 +48 -64 +5 -80 -62 +84 +12 +5 -99 +90 -42 +19 -18 +77 -2 +14 +23 +14 -7
+61 +94 -22 -80 -97 -16 -15 -33 +46 +64 +63 -82 +12 +16 +41 -94 +64 -91 -91 -61 -88 -43 +63 +79 -25 -55 -9 +67 +16 +0 -63 +12 +7 +15 +80
+16 +32 +51 -21 +66 +40 +61 -71 +41 +44 -10 +98 -95 +68 -26 +86 +19 +64 -47 -82 +21 +53 -5 -66 -73 -61 -46 +37 -6 +38 -85 -99 +78 -31 -50
-40 -32 -95 +22 +37 -91 -22 +47 +13 -30 +30 +69 -9 -13 +6 -41 -73 -15 +17 -56 +99 -86 -25 +34 +17 -77 +68 -7 -86 +96 +86 +39 -55 +28 +2
+71 +33 -70 +19 -87 +17 +58 +24 +7 +7 +37 +50 -63 -10 +59 +90 -61 -38 -59 +35 +37 +6 -72 +90 -13 -19 -100 -83 -8 +98 -40 -28 +48 -60 +47
+12 -11 +71 -53 +34 +9 +90 -30 -28 -21 -78 -89 +96 -39 +45 -69 -48 +35 +10 +22 +49 +99 +24 +70 +55 +47 -33 +13 +37 -75 -97 +96 +95 +34 -53
-43 +56 -3 -46 -1 +32 +60 +13 +86 -44 +72 +65 +21 -35 -51 +79 -76 -44 +80 -33 +83 -26 -51 +78 +18 -36 -8 -15 -41 +39 +60 +39 -87 -17 +24
+92 -48 +99 +23 +64 +43 -9 +27 +47 -78 +30 +3 -88 -85 +100 +62 -12 -8 -79 -99 -48 -54 -4 -6 +91 -94 -37 +65 +34 +33 -67 +28 +54 -32 -55
-64 +69 +36 +7 +97 -45 -33 +68 -50 -93 -22 -75 +100 +16 -22 -21 -57 +24 -63 -87 +17 +35 -98 +55 +95 -18 -6 -98 -51 -46 -87 +76 +20 -64 -57
+82 -35 -99 +64 -73 +20 +91 -12 -10 +44 +39 -93 +47 +79 -91 -58 +61 -61 +82 -99 +70 +22 +86 +57 -71 -46 -74 -15 -26 -62 -58 -19 -22 -83 -7
+82 -75 +56 +71 -47 +84 +22 +0 +86 -76 -57 -14 +34 +68 +18 +48 -77 -63 +86 -33 -6 +0 -92 +98 +82 -96 +7 -79 +77 -19 -51 -19 +61 +79 -91
+76 +20 -8 +6 +68 +90 -100 -43 +64 +18 +91 +86 +63 +37 +53 +91 -83 -74 -2 +81 +31 -31 -15 +43 -7 +50 -30 +0 -50 -51 -5 +6 -92 +22 +23
-62 +21 -15 +25 -83 -45 +59 +21 -20 -98 +92 +47 -61 -99 +3 -1 -59 -29 -52 +13 +24 +7 +91 +34 +64 -36 -14 +21 +38 -64 +9 +1 -46 +98 -15
+41 +35 +82 -98 +27 +42 +80 -54 -49 -30 -81 +45 -9 +47 +51 +34 +88 +38 -16 -37 -89 +76 -51 -49 -64 -38 +5 -81 -92 -5 -100 +84 +34 -96 +52
+2 +9 -11 +72 +81 -1 +59 +61 +53 +85 +39 +8 +87 +25 +65 -7 -41 +76 -86 -68 +60 -50 +40 +46 +42 -43 +85 -49 -43 +55 -42 -85 +19 +22 +85
+19 +34 +22 +20 -70 -39 -9 +99 -25 -89 +14 +43 +99 -41 -90 +99 +83 +5 -56 +53 -76 -21 +64 -1 +58 -91 -27 -99 +73 -43 +54 +53 -99 +30 +16
-32 -34 +75 -9 +19 -2 +50 -61 +5 +51 -85 +96 -45 +40 -62 +63 +21 +70 +44 -93 +55 -78 -34 -88 -67 +58 -7 +22 -95 -69 +2 -24 -47 +6 -33
+84 -27 +20 +51 -18 -53 +2 +20 -32 -18 -13 +23 -47 +87 -22 +3 +85 +79 +0 +83 +64 -65 +23 -46 +14 +39 +85 +90 +17 +56 -21 +100 +69 +60 +9
-88 +35 +11 -62 +32 +37 -29 +18 -86 +10 +96 +41 +59 -63 -3 +86 +21 +3 +82 +78 -72 -21 -21 +3 +52 +96 -39 -44 -81 +62 -25 +64 +20 +89 +10
+45 -10 -76 -34 -53 +26 -27 +15 -33 -64 -100 -64 -63 +36 -55 +19 +81 +72 -24 +65 +58 -14 -25 +8 -10 +2 +20 -50 -27 -82 +17 +5 +53 -54 +5
+32 +42 -25 -90 +75 -73 -30 +60 -60 +59 +19 -12 +7 -10 -2 +89 +78 +32 -56 +25 -37 -77 -95 -71 -65 -47 +69 -44 +14 +33 +80 -17 -35 +0 +84
-95 +63 +53 +25 -81 -15 +43 +10 -65 +62 -65 +57 -60 -50 +97 +70 -28 -12 -57 +89 -79 +98 -36 -80 -26 +29 +98 -67 -9 +85 +52 +96 +96 -52 -15
+92 -83 -15 +36 -21 +83 -95 -74 -26 +7 +29 -75 +77 +44 +98 -90 +29 -1 -50 +80 +95 -48 +61 +67 +71 +71 -87 -10 +20 -46 +47 -58 -68 -80 -76
+3 +74 +40 -33 +82 +84 +3 +71 -42 +23 -33 +92 +2 -35 -88 -88 -34 +60 -53 +86 -74 -16 -35 -16 -78 -59 -7 -63 -38 +97 +19 -45 +84 -61 -65
-19 +7 +20 +25 +25 +91 +58 +93 +15 +34 +71 -72 +67 -12 -48 -13 +85 -55 -42 +28 -94 -17 +31 -13 -52 +8 +0 +56 +3 -50 +86 -83 +71 +47 +90
+1 +74 +21 +52 +55 +10 +84 +62 -57 -64 -57 +56 +80 +2 +43 -90 +60 +40 -19 -48 -39 +40 +14 +28 -89 +23 -15 -70 +0 -76 -19 -19 -14 +14 -45
+66 +75 -42 +19 -21 +55 -49 +94 -8 -65 -62 +55 +41 -81 +86 -75 -82 -32 -78 +69 -14 -93 -95 +66 -53 -10 -17 +83 -34 +19 +63 +32 -28 +27 -97
--- BASE SOLUTION ---
[-93, -24, -22, -12, 88, 66, -56, -5, 43, 64, -10, 69, -63, -39, -51, 62, -57, -61, 86, 81, 24, 76, 40, -1, -67, 39, -39, -50, 14, 85, 47, -45, 71, 14, -97]
[69, -33, 40, -98, 82, -41, 58, -72, -42, -55, -73, 34, -72, 99, 83, -99, -63, -61, -77, 91, 3, 47, 87, 43, -85, -18, -86, 15, -30, -15, -21, -33, 20, 74, 66]
--- MY SOLUTION ---
[-93, -24, -22, -12, 88, 66, -56, -5, 43, 64, -10, 69, -63, -39, -51, 62, -57, -61, 86, 81, 24, 76, 40, -1, -67, 39, -39, -50, 14, 85, 47, -45, 71, 14, -97]
[69, -33, 40, -98, 82, -41, 58, -72, -42, -55, -73, 34, -72, 99, 83, -99, -63, -61, -77, 91, 3, 47, 87, 43, -85, -18, -86, 15, -30, -15, -21, -33, 20, 74, 66]
340 == 340
Worked.
TEST CASE: 36
----------------------------------------
36
+71 +78 -50 -63 -28 +23 -74 +62 -48 +37 +80 -95 -4 +66 +91 +48 +75 -82 -56 -39 +80 +8 -72 -7 -32 +24 -37 -47 +14 -86 -74 +46 -82 -73 +66 +89
-79 -22 +45 -73 +58 -82 -37 +27 -88 +46 -61 +44 +66 +36 -25 -11 -54 -21 +65 +46 +78 -5 -35 +66 +60 +72 -60 -38 -86 -24 +66 +48 +40 -3 -71 -66
+15 -99 +35 +76 -1 +83 -51 -53 +85 -97 +11 -47 +81 -12 +23 +46 +79 -58 +67 -47 +48 -80 -28 +36 -83 -27 -11 +41 -77 +5 +78 +66 +10 -22 -94 +29
+26 +41 +90 -24 -38 -19 -27 +38 -18 +66 +60 -49 +6 +21 +13 +46 -90 -67 -70 +33 -86 -47 -71 -48 -93 +89 +43 -98 +27 -58 +31 -15 -20 -93 +58 +19
-42 -85 -6 +43 +48 +77 -67 +29 +91 -15 +5 +52 -80 +79 +87 +48 +86 -6 +65 +80 +14 +42 +69 -52 -99 +34 +43 -48 +75 +12 +96 +62 +72 -76 -16 -15
+15 +32 -68 +63 -90 +72 -59 +80 +81 -39 -56 +62 +40 +86 -49 +86 -7 -73 -86 +8 +95 -28 -42 -14 -20 -80 -43 -8 -62 -28 +53 -6 -57 +55 -52 -44
+44 -39 +16 -20 +66 +86 -96 +53 +15 +40 -41 +95 +93 +8 -90 -78 +71 -42 +96 +22 +2 -34 -75 +87 -45 +16 -92 -94 -38 +4 +94 -79 +14 -21 -20 +2
-40 -44 -46 -51 +62 -87 -19 -43 +50 -68 +91 -92 +18 +92 -59 +64 +39 +99 +89 +18 -93 +48 +4 +10 +67 -25 +93 -72 -56 -73 -44 -78 -80 -15 -53 -46
-41 +6 -34 +35 +65 -24 +76 +71 -97 +33 +81 +63 +6 -66 -46 -50 +48 -28 +65 -4 +2 +99 +97 +8 -50 -97 -96 +72 -7 +42 -85 +6 +83 +53 -14 -40
-88 -30 +62 -100 -64 +61 -42 +30 +39 +31 +13 +68 +36 -50 +47 -34 -45 +95 +49 +89 +72 -17 -35 -77 -85 -29 -58 -69 +49 -93 +28 +2 +65 -20 -40 -39
+49 -4 +82 -10 +14 -100 +19 +67 -61 +89 -86 -89 -85 -41 +3 -23 +95 +97 +73 +9 -2 +83 +43 +16 -87 -74 -57 +63 +73 -99 +32 +65 +14 -11 -44 -93
-81 -53 +70 -78 +90 +7 -18 +54 -43 +27 +77 -24 +75 -86 +50 +1 -54 +57 +54 -80 +17 -57 +8 -15 -74 -100 -29 +11 +41 -15 -10 -34 +20 -89 -28 +48
-47 -18 +27 +74 +81 +11 -10 -38 +83 -85 +12 -94 -25 -90 +61 -3 +28 -87 +79 -58 +87 -73 -10 +98 -54 -66 -26 +79 +9 +70 -93 +27 -35 +53 +30 +66
-11 +27 -100 -82 -47 +61 +92 +78 +34 -7 +82 -91 -71 +5 -38 -53 -27 +51 +41 -28 -96 +59 +8 +32 +96 +60 +24 -5 -59 +65 +42 +26 +37 +63 +88 +32
+83 +92 -95 -76 +82 +44 -50 -71 -1 -43 -92 -8 +42 -89 +100 -43 -12 +65 +35 -29 +54 -15 +23 -35 +31 +66 -52 -5 -55 -45 -24 -4 +77 -43 +55 -72
-53 -14 +35 +12 +21 -74 +49 -21 +2 +26 +25 -42 -32 +9 -68 -17 -21 +73 +17 +6 -9 -26 +31 -79 +100 +85 +59 -76 +73 -19 -47 +4 +3 -36 -19 -1
-86 -98 +64 -82 +34 -56 +87 +19 +22 +32 -30 -86 -34 +47 -54 +74 -38 -70 +7 +95 -59 -75 +13 -1 -51 +37 +10 -76 -74 +36 -1 +65 +4 +73 +74 -72
-76 +79 +51 +60 +49 +36 -80 -43 +97 -97 +81 -16 -81 +82 -4 -75 +83 +31 -23 -96 +100 +32 -96 -34 +49 +31 -85 +70 -81 -4 +77 +80 -38 +75 +41 -24
+76 -33 +77 +97 +87 -58 -80 +90 -87 -23 +73 +96 +45 -20 +11 +1 +61 +52 -9 -37 -52 -11 -11 -7 -1 +45 -62 -71 -59 +77 -41 -18 -60 +36 +65 -44
-23 -48 +64 +7 -26 +82 -96 +48 +22 -90 -98 +1 +7 -60 -56 -71 -2 -32 -60 -58 +38 +56 +86 +24 -90 -26 +27 +80 +22 +2 -13 -53 -76 +42 +24 +94
-52 -34 +98 +13 -70 +49 +22 -10 -16 -16 -13 -37 -53 -84 +75 -94 +29 -41 +17 +44 +22 +58 +34 -18 +26 +52 +83 -45 +26 +75 -56 +64 +2 -40 +17 -7
+95 +70 +8 -4 +9 -58 -2 +52 +75 -91 +21 -50 +15 -51 +33 -31 +79 -72 +52 -91 +42 +84 +57 -61 -41 +43 +24 +21 +49 -49 -43 +40 +73 +11 +45 +78
+75 -31 -55 -34 -31 -87 -15 -29 -56 -75 -76 +77 -95 -67 -74 +37 -88 +85 +80 -86 +1 +18 +84 -19 +31 -18 +9 +85 -18 +62 -59 +72 -39 -75 -39 -52
-38 +99 -7 +39 -16 +45 +83 +47 +8 -15 -47 -92 +50 +61 -12 +49 -3 +44 -58 -18 +53 +83 -52 +58 +55 +27 +81 +35 +45 -70 +44 +42 +73 -96 +41 -55
+24 +59 +83 +51 +4 -12 +90 -45 +1 +93 -18 -42 +54 +12 +0 +100 -52 +37 +32 +78 -90 +57 -74 -8 -69 +68 +34 -73 -31 +68 +20 -69 +46 -27 +35 +16
+55 -83 +79 +31 -63 +9 -78 +29 +11 -29 +82 +95 +99 -73 -47 -76 +78 +21 -85 -75 -74 +50 +95 +48 +100 +99 -98 -7 -94 +1 -58 +52 +15 -80 -20 +100
-5 -20 +90 -42 -35 +81 -8 -44 +53 +49 +77 +5 +85 -24 -86 +11 -31 +41 -63 +89 +9 -70 -64 -91 -64 +28 -69 -96 +89 +26 +57 +82 +3 -21 +46 +7
+76 -35 +18 -5 +20 +46 -83 -22 +7 +89 -22 +16 -33 +69 +49 +28 -64 -76 +53 +1 +43 -93 +90 +68 -38 +75 -17 +79 -98 +92 +56 +71 +98 +59 -52 -85
-13 +15 -15 -32 +6 -11 +4 +10 -30 +27 +30 +68 -73 +6 +0 +62 +6 +64 -36 -87 -79 -81 +84 -72 -86 -83 +78 +64 -35 +14 +75 -66 +39 +45 +62 +34
-73 -68 -53 +37 +4 +62 +33 -26 +30 +93 +11 -42 -22 +46 -70 -22 -93 +26 +69 -71 +98 -98 -16 -8 -64 +98 +79 -64 -8 -9 +37 -60 +78 -54 +3 -41
+96 +63 +64 -84 -99 +83 +35 -46 +60 -91 +20 -57 -1 +33 +50 -96 +54 +54 -71 -9 -51 -38 +3 +7 +89 -73 +59 -58 +71 -81 -34 -31 -58 -75 -99 +75
-100 +95 -99 +89 -58 -15 +92 -69 -5 -23 +19 +3 +50 +98 +37 -23 +56 -1 -7 +44 +51 -18 -19 +90 -13 +57 -39 +96 +50 -84 +43 -35 -8 +32 +83 -100
-47 +15 -75 +18 -95 -56 -11 -8 -27 -42 -57 +84 -10 +21 -36 +72 +15 +39 +71 -87 -44 -55 -93 -64 +94 -51 +22 +3 +95 -23 -20 -45 -80 -71 -76 -53
+80 -83 -5 -30 +89 +60 +29 -26 -9 -39 +51 -10 +84 +36 -60 +38 +30 +68 +36 +76 -90 +49 -25 -53 +45 +88 -49 +91 -93 -29 -94 -95 +94 +36 -82 +12
-87 -4 +33 -59 +15 -78 -21 +28 +61 +21 +73 -23 +32 -8 +70 -88 +98 -6 +75 -40 -60 -83 -36 -43 -50 +29 +31 +35 -64 +57 -69 +4 -69 -68 -13 -49
-32 -44 -16 +79 -79 -3 -51 +68 +87 -53 +19 +43 +5 -49 -55 -29 +70 +14 +7 -57 +84 -2 +54 -85 -82 -64 -89 +27 -23 -48 +48 +48 -47 +57 -31 +90
--- BASE SOLUTION ---
[71, -22, 35, -24, 48, 72, -96, -43, -97, 31, -86, -24, -25, 5, 100, -17, -38, 31, -9, -58, 22, 84, 84, 58, -69, 99, -69, 79, -35, -9, -34, -35, -80, 36, -13, 90]
[89, -71, -22, -20, 62, 53, 4, -56, 72, -58, -74, -74, 98, 8, -15, -9, 95, -23, 52, -2, -94, 33, -67, 50, -42, 82, 49, 7, 10, 33, 83, -58, 18, -5, -4, -32]
--- MY SOLUTION ---
[71, -22, 35, -24, 48, 72, -96, -43, -97, 31, -86, -24, -25, 5, 100, -17, -38, 31, -9, -58, 22, 84, 84, 58, -69, 99, -69, 79, -35, -9, -34, -35, -80, 36, -13, 90]
[89, -71, -22, -20, 62, 53, 4, -56, 72, -58, -74, -74, 98, 8, -15, -9, 95, -23, 52, -2, -94, 33, -67, 50, -42, 82, 49, 7, 10, 33, 83, -58, 18, -5, -4, -32]
110 == 110
Worked.
TEST CASE: 37
----------------------------------------
37
+76 +44 -94 -85 +2 +49 +39 -91 -83 -93 +51 -36 +99 -33 +2 +23 +9 +31 -7 +40 -35 +84 -61 +93 +62 -80 -84 -64 -96 +57 +66 +14 -96 +67 -27 +60 +82
-76 +83 +32 -20 +8 -2 -19 +3 +33 -20 -16 +92 -100 +32 -23 -25 +80 +53 +81 +4 -71 +17 +58 +70 +31 +84 +96 -43 -44 +75 -41 +65 +23 +76 -73 -42 -52
+54 -96 -98 +41 +70 -51 +8 +78 +12 +20 -19 +29 -45 -61 -46 -53 -100 -40 +89 +51 -91 +6 +34 -24 -61 -88 -9 +20 -44 -20 +54 +23 +66 -70 -1 -36 +83
+79 +81 -83 +79 -33 -68 -55 -50 -59 +72 -77 -31 -78 +74 -11 +89 +30 -21 +87 -62 -3 +98 +85 -2 +43 +51 -54 +26 +88 +68 -85 -43 +94 +100 +100 +98 +0
-87 +42 +60 +71 +69 -89 +11 -2 +2 +61 -41 -79 +50 -83 -41 +19 -77 -41 +5 -66 -47 +91 -20 -90 +41 +91 +64 +89 +60 +13 -16 +71 -71 -19 +38 -46 +78
+83 -96 -83 +86 -67 +92 -39 +89 +8 -16 -31 -84 -74 -19 +15 -78 +87 +57 -25 -29 -72 +88 +22 +46 +28 -26 -20 +41 +79 +4 +65 -58 +41 -29 -70 +57 -69
-27 -50 +16 +41 +79 +52 -33 -49 -20 +98 -54 +32 +86 +27 -30 +76 -68 -3 +51 -63 -60 -57 -83 +7 +30 +12 +63 +86 +29 +41 +83 -44 +3 +53 -35 +63 -79
+71 +0 -69 -79 +35 -76 +21 +95 -63 +21 -3 +78 +76 +4 +19 -39 -12 +21 +34 +87 +72 +87 -19 -96 +60 +90 +4 -56 -50 +86 -17 +7 -54 -9 +84 -30 +75
+40 +21 +71 +54 -64 +30 +92 -11 +93 +91 -51 +33 +65 -75 -37 -48 +90 -44 +69 +5 +44 -46 -69 +22 +74 -62 -50 +45 +1 -58 +44 -49 +47 -92 +68 +88 +58
-87 -19 +35 -31 -48 -53 +97 +63 +30 -39 -3 -93 +17 +71 -26 +34 +95 -57 +26 +37 +13 +76 +82 +40 +49 -31 +99 -81 -91 -58 -63 +54 -33 -42 -54 +47 +16
+49 +68 +14 +61 +58 +11 +53 +85 +54 -81 +37 +51 -24 +17 +17 +95 +30 +13 -51 -10 +74 -28 +68 +97 -84 -11 -25 +19 +100 -5 +48 -70 -92 -93 -92 +92 +58
+77 -39 -48 +50 +58 +94 +11 +14 +62 +43 +47 +28 -99 -57 +41 +92 -10 -11 +8 -17 -19 +75 -92 -51 -44 -53 -89 -69 +24 +58 +45 +74 +21 -13 +68 -38 +14
-29 +14 -20 +96 -36 +4 -58 -15 +84 -74 +54 -61 +35 +42 +31 +85 -89 +29 +5 +83 -53 -68 -69 -6 +44 -12 +13 -31 +56 +19 +41 +24 +29 -1 +45 -45 +95
+85 -10 +100 +9 -38 -65 +58 +59 -49 -95 -80 -65 +70 -39 +89 +92 -70 +59 +84 -13 +1 +90 +97 +59 +44 +56 -38 +46 -59 -96 +51 +29 +38 -55 -85 +43 -57
+95 -98 -91 +66 -21 +57 -4 -22 +28 -97 -9 +87 -79 -19 +97 +5 -91 -29 +34 +59 +22 -95 -56 +74 -61 -80 -53 +19 -7 +38 +84 -90 +40 +67 -48 +11 +45
-18 +25 +15 +19 +63 +29 +51 -16 -57 -89 -10 +9 +82 -75 -92 -25 +83 +83 -48 +69 +50 +81 +8 -76 +0 -66 -23 +32 -27 -40 -11 -53 +31 +65 -46 +89 +51
+39 -72 +18 +74 -92 -48 -6 -40 +47 -10 +86 -7 -96 -67 +8 +1 -29 +29 +31 -58 -87 -13 -57 +4 -93 -67 -39 -33 -72 -66 +64 -43 -39 +61 -11 +68 +0
+13 -30 +2 -64 +94 -54 -92 -1 +20 -99 -21 +20 +48 -20 -46 -24 -85 -2 -25 +52 +45 -62 -77 +21 -94 +56 -20 -71 -74 -83 +72 +0 -72 -60 -61 +1 +92
-29 -32 +58 -7 +79 +56 -45 -35 -11 +56 -3 -76 +34 -97 -43 +7 +73 -24 -68 +83 -25 -25 +29 +59 -91 -33 -78 +27 -84 -75 -49 -80 +49 -48 +61 +55 -63
-49 +3 -6 -28 -41 +83 +99 +80 -58 +62 +67 -7 +68 +84 -61 -20 -44 -22 +66 -30 -31 -78 +26 +81 -60 -34 +8 +3 +88 -34 -34 +93 -19 +84 +93 -37 -72
+9 -44 +22 +80 -88 +26 -82 +58 +86 +40 +8 +80 -83 -74 -37 +48 +92 -71 +76 +26 +86 -10 -27 +59 +79 +62 -24 -84 -27 -42 -8 -30 +62 +73 -71 +51 +55
+84 +81 +60 -16 +20 +4 +42 +30 -11 +26 +66 +75 -51 -79 -51 +90 -5 -3 -11 -100 +15 +94 -62 +83 +15 +6 -94 +54 +97 -17 +69 +12 +5 +81 -20 +70 -65
+57 -100 -24 -96 -42 -49 -81 -46 -24 -26 +2 -44 +95 +99 -21 -44 +91 -15 +61 -66 -82 +11 +24 +5 +72 +23 +49 +80 +6 -32 +13 +28 -16 +85 -3 +44 -3
-43 +20 -33 -28 -85 -45 +40 +71 +30 -34 -53 -57 +54 +46 -6 -53 -72 +6 -83 -82 +39 -74 -41 +5 -40 -50 +56 -20 +38 -69 -17 -39 -23 -46 -51 -71 +67
+91 +50 -5 +37 -45 -56 +17 +14 +83 -47 +33 -93 +95 -30 -13 +25 -79 -56 +82 +71 +78 +64 -97 -75 -57 +66 -39 +62 -32 -70 +40 -73 -62 -80 +37 -61 -26
+7 +10 +20 +76 +9 -27 +37 -14 +72 -81 -68 +22 +35 -100 +26 -64 -99 -90 -4 -25 -42 -7 +27 -15 +19 +14 -52 +88 +11 -40 +96 -55 +18 -50 -98 +15 +98
+27 -62 -35 -11 +64 +43 +77 -32 -61 -70 +51 +76 +85 -30 -14 +3 -56 -55 +37 -34 +56 +16 -35 +21 -74 +68 +80 -73 +26 -63 -43 +83 +79 -26 +39 -38 +36
+2 +100 +43 +60 -95 +10 +90 -83 +12 -45 +45 +14 -61 -100 +55 +50 +29 -52 -90 +65 -29 -19 -8 -13 -1 -16 -85 +65 +17 +28 -9 +14 -84 +79 -33 +53 -25
+26 +81 -63 -1 -12 -89 +70 -80 +93 +90 +14 -84 +59 +71 +30 -64 +21 -30 +83 -22 +24 -64 -59 +48 +21 -75 +29 +19 +50 -95 +66 +59 -74 +33 +32 +25 +15
-74 +65 +57 -11 +96 -66 -27 -16 -33 -12 -57 +73 +26 +30 +99 +46 +47 -26 -80 -31 -21 -77 +70 -7 -10 +90 +12 +63 +89 +47 +13 -75 -95 -46 -40 -22 +26
-83 +59 +16 +33 -17 -4 -58 +12 +72 -21 +65 -86 -88 +71 +71 +29 +51 +30 +18 -48 -54 -73 +22 +6 +46 +88 +62 -10 +86 +25 -69 +38 -56 -56 +23 +30 +86
-98 +58 +4 +58 +59 +97 +21 +58 +83 -83 -87 +6 -74 +88 -8 -67 -52 -47 +100 +92 -65 -94 -64 +36 -60 -70 -61 +67 -1 -71 +55 -52 +5 +74 -41 -79 -80
+75 -75 -6 +90 -78 -36 -82 -40 -24 -76 +83 +90 -55 -32 +47 +22 -97 +72 +49 +56 -18 +2 +100 -96 -2 -38 +58 -3 +24 +26 +76 -90 -38 -38 +66 -24 -46
+100 -50 +89 -35 +48 -5 +53 -81 -84 +43 +26 +46 -66 -76 +64 -80 -32 +59 +13 +1 +42 -63 +66 -87 +81 +85 -99 +34 -2 +67 +51 -98 +25 +0 +11 +41 +16
-6 -40 -59 -91 -46 -34 -78 -84 -72 +23 +60 -73 +70 +53 -13 +7 +14 -50 +9 +57 +75 -94 +81 -56 +30 +82 +36 -33 +40 +47 -87 +13 +85 +47 -92 -15 +91
+46 +65 +19 +23 +62 -96 +50 -32 -42 -57 -61 +51 +61 -64 -73 +0 -13 -72 +75 +25 +74 +72 +30 +21 -17 -63 +59 +85 +55 +28 +49 +54 +40 -82 -29 +56 -76
+37 -81 -44 +25 +7 +88 +29 -43 +6 +86 -34 -74 -58 +55 +23 +71 -60 +36 +21 -64 -42 -67 -86 -40 +93 -74 +16 -15 -88 -99 +16 -34 -27 +5 +1 -87 +8
--- BASE SOLUTION ---
[76, 83, -98, 79, 69, 92, -33, 95, 93, -39, 37, 28, 35, -39, 97, -25, -29, -2, -68, -30, 86, 94, 24, 5, -57, 14, 80, 65, 50, 47, -69, -52, -38, 0, -92, 56, 8]
[82, -42, -1, 100, -71, -58, 83, 86, 1, -81, -25, -53, 44, 59, -56, 81, -87, 52, -68, -22, 92, 90, -21, 46, 95, 22, 51, -45, 93, -16, -58, 97, -78, -35, -59, 65, 37]
--- MY SOLUTION ---
[76, 83, -98, 79, 69, 92, -33, 95, 93, -39, 37, 28, 35, -39, 97, -25, -29, -2, -68, -30, 86, 94, 24, 5, -57, 14, 80, 65, 50, 47, -69, -52, -38, 0, -92, 56, 8]
[82, -42, -1, 100, -71, -58, 83, 86, 1, -81, -25, -53, 44, 59, -56, 81, -87, 52, -68, -22, 92, 90, -21, 46, 95, 22, 51, -45, 93, -16, -58, 97, -78, -35, -59, 65, 37]
242 == 242
Worked.
TEST CASE: 38
----------------------------------------
38
+65 -42 -11 +58 -47 -95 -63 +58 -63 -59 +98 +93 +38 -35 +66 -30 -23 -62 -97 +53 +93 +44 +62 -87 -38 -10 +93 -14 -14 +90 -60 -91 -4 +26 +29 -33 -40 -49
-5 +53 +86 -94 -53 -38 -45 -9 +20 +21 +90 -2 +57 +15 -23 -19 +8 -77 +32 +13 +92 +38 -65 +41 -93 -40 -17 +25 -77 +62 +50 +76 -69 -50 +35 -54 -29 -60
-62 -71 -17 +48 +8 -68 +69 -43 -39 -28 -5 +58 -61 +30 +33 -79 +40 -16 +6 +35 +97 +64 +57 +79 +40 +83 -27 +18 +25 +92 +34 +40 -40 -44 +85 +52 -17 -50
+51 +96 +62 -48 -39 -27 +59 +13 -75 +25 +55 +30 +40 +57 -74 +57 +17 -37 -38 -1 +29 -74 +38 +69 +33 -83 +51 +81 -68 -87 -8 +2 -56 -48 -74 +19 -72 -44
+91 +62 -46 +74 +3 +73 +29 +35 -65 +90 +23 -33 +41 -23 +29 -58 -84 -11 -54 -42 -2 +84 +17 +78 +19 -80 +27 -57 +92 +37 +30 +72 +69 +43 -63 -64 -21 +40
+17 +23 +60 -16 +17 -37 +2 -18 +70 -59 -98 +12 -1 +65 -80 +31 +53 -17 -7 -93 -83 -77 -22 -54 -88 -54 +54 +74 +65 -45 +65 -14 +82 -16 +16 -44 -39 -73
-71 +65 -59 +76 +17 +33 -70 +86 +15 +13 -7 -94 +49 -55 +57 +66 -100 -72 +36 -52 +56 +55 +11 -46 +21 -95 -29 +30 +4 +72 +48 +92 +66 +100 +76 -96 -91 +80
-21 -65 -99 -28 +66 -43 -53 +59 +48 +90 +56 +0 +20 -97 -23 +33 +3 -64 -93 -89 -38 +63 -9 +13 -98 +12 -69 +63 -85 -12 +67 +25 +16 +75 +7 -64 -8 -1
-80 +63 -40 +84 +60 +66 +52 +98 -45 -57 +67 +40 +28 +99 +9 +37 -76 +24 +99 -23 +95 -46 -52 -9 +39 -97 +96 +33 +1 +43 +83 -19 +41 +31 +26 -70 -96 -82
+62 +40 +24 -16 -86 -19 -64 -23 -28 -61 +51 +27 +68 -81 +79 -28 +56 -53 +17 +22 -51 +10 -46 +66 +44 +22 +39 +31 -43 -13 -15 -55 -88 -2 -89 -19 +78 +10
+43 -30 +15 +1 -53 +92 -39 +40 +96 +56 -35 +22 -11 +68 -74 -1 -81 +61 +5 -65 -6 +39 -36 -71 +89 +88 +42 -58 -11 -50 +41 +65 +75 +48 +33 +26 -63 -14
-85 +34 +85 -46 -91 -40 +82 -67 +0 -30 -72 +82 +17 -18 +15 -58 +94 -37 -24 +48 +71 +70 +54 +67 -84 +99 +3 -87 +94 +67 -60 +80 +15 +12 -13 -56 +65 +18
-42 -34 +53 +85 +98 +56 -87 +41 +39 -80 -13 +90 -17 +85 -74 -100 +44 +3 -84 +37 -55 +93 -29 -55 -30 -33 +86 -8 -56 -59 -57 +76 -59 -73 +30 -36 -98 -77
+66 -93 -86 -5 -54 +48 +39 -9 +81 -71 -2 +81 +81 -17 +46 -100 -48 -15 -50 -7 -84 -51 +6 -49 -31 -10 -32 -42 +53 +27 -54 +1 -66 +3 +77 -86 -17 +79
-20 -6 -94 -81 -85 +91 -19 -13 -39 -39 -19 +70 +30 -3 +91 +42 -90 -32 -78 -34 -51 -46 -29 -25 -60 +2 +90 +76 -21 -77 -73 -78 +62 +40 -75 -87 +28 -29
+38 -97 +36 -50 +81 +16 -4 +85 -86 -92 -93 +12 +76 -22 +90 -57 +16 -38 -12 -18 +28 -96 +99 -44 -64 +2 -92 +30 -23 +85 +56 +26 +78 +29 -67 -36 -59 -62
-60 +21 +39 +48 -64 +71 +13 +81 +89 -32 -79 -93 +9 -55 +23 -59 -38 -100 +91 +42 -22 +15 +0 +65 -61 +12 -75 -24 -69 +58 +64 -73 +10 +15 +47 -10 -70 +32
-54 -14 +100 +60 +94 +26 +59 -59 +73 -12 +20 -55 -38 -15 +15 +90 -84 +89 +26 +8 -50 +83 +48 +41 -92 -97 +71 -2 +16 -21 +26 +77 -78 +55 +41 -96 +38 +25
-70 -13 -74 -9 -27 -91 +49 -5 +75 -19 -95 -90 +55 +48 -69 -63 -72 +12 -24 +5 -50 -44 -2 +9 +81 -51 -80 +89 +7 +13 +74 +3 -87 -5 -6 -69 +25 -47
-62 -69 -34 +76 -91 +85 -66 +64 -47 +6 +38 +90 -16 -55 +22 -56 -55 +19 -49 -19 -18 +94 +74 -67 -6 -71 +4 -9 -54 -54 -95 +96 +100 +20 +66 +96 -75 -62
+76 +42 -4 -49 +46 +1 +65 -99 -31 +92 -90 -78 +47 -61 +99 +96 -29 -3 +80 -74 +35 -14 -48 +48 +29 +73 +14 -78 -83 +63 -86 +8 -41 -50 +97 -89 -42 +31
+92 +72 +64 -46 -49 -31 +1 +25 +48 -66 +58 +52 +79 -58 -100 -30 +32 -8 +98 +27 -89 +6 -62 +61 +87 +44 +28 -1 +48 -72 +4 +86 -12 -36 +44 -77 -40 -74
-51 +61 +52 +9 -46 -79 -67 -98 -98 -25 -14 -83 -54 +100 -55 -18 +32 -38 -42 +26 -81 -83 +44 -47 -55 -71 -33 +23 -47 -97 +5 -49 -76 +63 +60 +31 -41 -59
+46 +37 -97 +36 +50 -99 +83 -86 +64 -53 -56 -49 -58 -88 +39 +85 +59 -11 -63 -34 -83 +9 -70 -61 -35 +11 +87 +3 -12 +25 -14 +58 +96 +83 +36 -72 +20 -78
-15 -61 +65 +68 +99 +16 -64 -34 -96 +58 -81 -30 -16 -67 -39 -11 +85 +71 +62 +87 -11 +3 -5 -69 +35 -37 -71 +94 +22 +65 +61 -41 +91 -85 -36 -86 -18 -81
-98 +5 -91 +6 -75 +70 -4 -40 -87 +83 -17 +26 -76 +51 -69 -63 -79 +80 +75 +37 +17 -51 +0 -25 +43 +94 -51 -10 -43 +50 -53 +94 +12 +34 +64 +14 -25 +7
-73 +25 +38 -31 -13 +67 -35 -73 +8 -43 -79 +71 -92 +11 +78 +69 +38 +68 -17 -10 -27 -57 -92 +91 +14 +97 -49 +60 -5 -79 -36 +16 -52 +69 +7 +38 -42 +33
-41 +14 +53 -90 -92 +41 +67 -24 -32 +59 +8 +9 -100 -49 -6 -5 +3 +92 +37 +100 +83 +56 +80 -33 -37 -15 +34 +14 +25 +79 +50 +38 -80 +5 -2 +53 +82 +5
+70 +84 +5 +5 -74 +3 -11 -92 +70 -28 -32 -29 +8 +66 -21 -84 -90 -54 -56 -41 +87 +26 +3 -75 -43 +55 +12 -91 +36 -94 -10 +76 +97 -2 -22 +57 +64 -98
-2 +40 +48 +31 -20 +31 +92 +1 -80 -60 -3 -53 -31 +41 +30 +86 +95 -67 +23 -21 +61 +36 -57 +57 -55 -51 -38 -44 +21 -40 +37 +40 -87 +41 -18 +20 -46 +18
+61 +20 +32 -86 -71 +7 +46 +96 -31 -93 -50 +96 +18 -85 +4 -67 +92 -82 +37 -52 -45 +75 -32 -5 +64 +57 +48 -56 -88 -79 -23 +15 +15 +15 -99 +9 +88 -47
+37 +93 +64 +0 -16 +70 +59 -33 -24 +39 +26 -91 -33 -34 +66 +53 -97 +51 +35 -84 -87 -47 -98 -12 -100 -91 -28 +97 -89 +1 -68 -60 -7 +69 +39 +82 -74 +77
-16 +50 +32 +75 -54 +65 -24 +100 +41 -54 -42 -7 -81 -91 +8 +66 +24 -96 -7 +25 -56 +21 -75 -47 -41 -57 +96 +18 +76 -37 -63 +95 -14 +92 -74 +33 -76 -75
+54 -90 -73 -28 +86 +89 +97 +64 -42 +6 -16 -58 -84 -78 -5 +76 +6 -98 +58 +35 -26 +4 -63 +48 -77 +53 +15 +32 -75 +14 +56 +28 +37 +77 -76 -67 +74 -86
+100 +63 -91 +49 -15 -1 +50 -98 -6 +18 +22 -92 +81 +53 -9 -34 -23 -61 -5 -100 +95 -63 -77 -3 +30 -55 -58 +56 -20 +70 +68 -8 -92 +43 -63 +41 -20 +52
+62 -24 -41 +90 -67 +8 -90 -39 -28 +9 +53 -96 -54 -6 -48 -65 +28 +29 +85 +20 -1 +29 -82 -43 +31 +93 +16 +54 +23 +17 -56 -52 -76 -18 -6 -87 +15 +35
+34 -76 +76 -21 -1 +65 -99 +11 +5 +0 +40 -53 -14 -54 -40 -37 +49 +14 -98 +46 +78 +63 +80 +32 +88 -62 -85 +8 -91 -2 +8 -88 -72 +33 -2 -29 +45 -55
-58 +94 -58 -88 -65 +85 -86 +59 -97 -13 +64 +22 +84 +89 -71 -35 +79 +45 +21 -74 +42 +77 +92 -23 +14 +98 -22 -18 -74 +97 +27 +60 +25 -48 +57 +33 +75 -32
--- BASE SOLUTION ---
[65, 53, -17, -48, 3, -37, -70, 59, -45, -61, -35, 82, -17, -17, 91, -57, -38, 89, -24, -19, 35, 6, 44, -61, 35, 94, -49, 14, 36, -40, -23, -60, -14, 77, -63, -87, 45, -32]
[-49, -29, 52, -74, 43, 82, 92, 67, 43, -43, -58, 3, -33, -31, -25, 99, 15, -50, 5, -49, -3, 32, -18, 39, -67, -76, 71, 8, -28, -80, 96, 59, 65, 86, 49, -41, -76, -58]
--- MY SOLUTION ---
[65, 53, -17, -48, 3, -37, -70, 59, -45, -61, -35, 82, -17, -17, 91, -57, -38, 89, -24, -19, 35, 6, 44, -61, 35, 94, -49, 14, 36, -40, -23, -60, -14, 77, -63, -87, 45, -32]
[-49, -29, 52, -74, 43, 82, 92, 67, 43, -43, -58, 3, -33, -31, -25, 99, 15, -50, 5, -49, -3, 32, -18, 39, -67, -76, 71, 8, -28, -80, 96, 59, 65, 86, 49, -41, -76, -58]
204 == 204
Worked.
TEST CASE: 39
----------------------------------------
39
-15 -9 +98 +93 -14 -93 -5 -15 +64 -72 -76 +9 -29 -65 +63 -68 -38 +75 -50 -13 +83 -31 +71 -21 -55 +55 -48 +78 +38 -95 +82 -7 -80 +16 +39 +56 +9 +38 -56
+33 +97 +4 -4 -14 -34 -74 +99 -27 +92 +45 -72 +2 -37 -81 -14 -51 -46 -29 -7 -53 -6 -9 +69 +24 -15 +16 +13 -69 -77 +12 -64 +20 +24 +64 -78 +9 -82 -100
-79 +82 -53 -23 -9 -14 -72 +39 -20 +48 -88 +100 -84 -95 +69 +77 -9 +5 -96 +12 +51 -15 +89 -84 -19 +76 -18 -80 +66 +85 +71 -42 -26 -25 -21 -25 -96 -84 -78
-74 -71 -29 +33 +85 +5 -50 +76 -91 +18 -9 -35 -55 -34 +6 -30 +0 -19 +6 -5 +40 -26 +55 -37 +55 +61 -82 +55 -82 +85 +39 -79 -20 +1 -43 +28 -16 +1 -32
-80 -61 +70 +7 -34 -77 -33 -14 +30 -82 -77 -63 -62 -7 -83 -68 +71 +6 +2 +40 +45 +93 +31 -2 +97 -24 -9 +38 +7 +11 +61 -77 -27 +81 +9 +8 -37 -9 -13
+4 +46 -100 -35 -26 +16 -46 -74 -3 -45 +98 -20 -71 +21 +43 -56 +26 +15 +43 +18 +92 +77 +62 +60 +6 +23 -75 -22 +40 +41 -88 -92 -20 +3 +77 -63 +3 +37 +86
-12 -92 -18 +62 +74 +54 +42 -5 -47 +81 -65 +18 +6 -24 +81 +1 +33 +89 +4 +4 -26 +77 -32 -55 +93 +55 -60 -46 -49 -83 +91 +58 -73 -61 +26 -33 +71 -13 -89
+45 -25 +41 -57 +57 +53 -29 +41 +37 +70 -9 -84 -84 -36 -66 +61 +60 +10 -31 -50 +65 +95 +39 +27 +8 +35 -91 -65 +24 +28 -48 +47 -5 -32 +48 -13 -11 -68 +14
+17 -28 -5 +56 -14 -92 +50 -43 +53 +66 +93 +1 +16 -72 +22 -67 +35 -58 -65 -12 +92 +15 -61 +68 -27 +59 +28 -27 +28 -74 -95 +6 -33 +61 -64 +84 -93 +88 +67
+68 -40 +42 +69 -46 +25 -48 -97 +68 -33 -40 +52 +14 -76 -5 +10 -18 +83 -79 -2 +99 -65 -26 -97 +66 +15 -14 +38 -75 -86 -97 +67 -78 -37 -88 +8 +50 -18 -14
-94 +13 +35 +69 +10 -5 -95 -40 -91 +26 -61 +71 -6 -96 +98 +52 +3 +58 +14 +50 +93 +85 +39 +31 -66 -60 +66 +29 -52 +51 +7 -73 +89 -49 +28 +28 -64 -52 -26
-31 +45 +7 +81 -100 -52 +48 -1 +27 +80 +7 +70 -66 -49 +57 +6 +13 +61 +74 +2 +36 +74 +16 +70 +59 -86 -40 -65 +39 +71 -52 -85 -77 -16 -68 +7 -77 -2 +7
+14 +66 +27 -92 +81 -76 +76 +71 +32 +21 +47 -61 +55 +47 +7 +1 +92 +68 -71 +36 -55 +48 +25 -84 -83 +3 +73 -19 +89 -47 +96 +65 +89 -2 -1 +51 +69 -74 +44
-83 +70 -64 -7 -67 +15 -42 -1 +6 -93 +2 +80 +60 -96 -20 -52 +11 +70 +39 +20 -29 +58 -9 +49 -45 -30 +22 +11 +67 -30 +68 +36 +83 -31 +22 -66 +58 -32 -47
-47 +67 +63 -62 +64 -77 -28 -86 -22 -94 +21 +56 +35 +77 +31 -58 -37 -71 +59 -2 +4 +34 -86 -73 +34 +34 +1 -84 +37 -11 -20 +79 -81 -50 +47 -28 +36 +6 -35
+17 +21 -10 -50 -24 -21 -39 +33 -30 +84 +92 -31 -48 +73 -26 +7 +81 -26 -77 +57 +80 -19 +80 +91 -71 +18 -84 -22 +76 -93 +77 -40 +76 -19 -76 +5 -23 -13 +66
-93 -12 -81 -49 +10 +53 +1 -78 -27 +0 +20 -56 -49 +49 -15 -42 -74 -83 -32 +30 +8 +9 -74 -71 -56 -89 +20 +66 -15 -36 +55 +83 -44 -25 -43 +90 -72 +21 -34
-92 -91 -97 -31 +26 -31 -73 -22 -23 -91 -27 -79 -4 -61 -19 -58 +59 -62 -23 +69 +92 +64 -67 -94 +100 -25 -17 -11 -20 -22 -69 -27 -14 +97 +56 -46 -46 -84 -7
+30 +29 +39 +5 -13 -61 +82 -87 +56 +77 -31 +14 +95 -5 -56 +12 +26 -89 -13 -58 -41 -4 +57 -80 +95 +97 +46 +42 -38 +43 +5 -97 -39 +7 +72 +14 -87 +70 -14
+91 -83 -90 +49 +29 +33 +53 -89 -32 +18 +21 -10 +75 +44 +30 -9 +56 -68 -64 +68 +61 -47 +76 -3 -64 -32 +3 -76 -19 -22 +3 -90 -59 -100 +51 +89 -11 +66 +59
+18 +91 +73 +57 -4 +0 -53 -67 +18 +28 +11 +63 +6 +60 +64 +86 +98 +99 +7 +75 +5 +24 -8 -60 -17 -28 +9 -46 +79 +25 +41 -20 +1 -54 +85 -44 -46 -28 +49
-80 -94 +69 +90 -84 +33 -48 -16 +8 +15 -69 +6 -58 +13 -80 -76 -6 -64 +97 -27 -21 +13 -56 +83 +93 -29 -34 -59 +87 -32 -83 -41 -5 -78 -19 +51 -21 -31 -75
+23 -28 -1 -38 -24 +51 -77 -7 +82 +36 -89 +74 -14 -91 +19 +39 -19 -74 -17 +63 +72 +70 +48 +74 -87 +33 +22 +46 -19 -90 -45 -77 +92 -20 +82 +7 +22 -40 -56
+86 -36 -40 +9 -97 +79 -13 +40 -75 -65 +9 +82 -96 +66 +48 +95 -14 -35 +99 -83 +20 +31 -94 -83 -8 -75 +8 -13 +94 -12 -45 +38 +75 -19 -99 -15 +0 +89 -63
+48 +73 -48 +19 +40 -36 -36 +67 -88 -76 -35 -1 +55 +65 -63 +13 -50 +53 +14 +91 +25 -32 -21 +45 -56 +40 -65 +69 +72 +58 -92 +29 +8 +33 -98 -71 -13 -74 +42
+21 -71 -36 -22 +11 +18 +65 +42 +10 +25 -57 -43 -43 -46 -89 -36 -34 +80 -20 -31 -100 +78 -31 +28 -87 -43 -89 -46 -49 +75 +16 -80 +35 -52 +84 -95 -90 -55 -65
+87 +62 +2 +80 +54 -92 -84 -11 +70 -28 +3 +64 +45 -62 +2 -35 -93 -53 -43 -94 -75 -4 +63 +55 -82 -15 +81 -59 -72 +54 +84 -100 +7 +9 +50 +85 +87 -1 +34
-83 -57 -61 -15 -30 +93 -67 +31 +57 -9 +72 +45 -75 -98 +17 -85 +71 +23 -43 -76 +78 +25 +48 +81 +16 +33 +32 -30 +14 +45 -21 -53 -24 +17 -66 -9 -94 +85 -73
+95 -45 -68 -51 +51 +51 -14 -60 -24 -15 +5 +100 -40 -26 -68 +79 +99 -80 +75 +94 +99 +35 +33 +23 +88 -52 +29 -93 +24 -18 +99 -83 -79 -54 +86 +79 -55 -92 +17
-48 -80 -5 -46 +98 -63 -10 -25 -47 -5 +82 -79 +49 -86 -91 -40 -21 -86 +41 -89 +30 +35 -24 +62 -10 +50 +30 -67 +45 -1 +7 +100 -58 +50 +75 -8 -76 +32 -36
-27 -30 +4 +82 -28 -27 -33 +35 +25 +50 -2 +2 -82 +24 +73 -18 +52 -33 -22 -100 -46 +64 +9 -48 -46 +0 +14 -65 -39 -61 +60 -88 -91 +75 -77 +95 +57 -19 -49
-21 +68 +97 -53 +4 +19 +21 -72 +27 -50 +46 +32 +39 -17 -72 +63 -53 +30 -77 +87 +64 +57 +80 +60 +34 -83 +0 +55 +61 +33 +33 -37 -66 +15 -68 +13 -50 +83 +33
+9 -9 +46 +73 +70 -51 -35 -52 -20 +8 -62 +74 -99 -48 +44 -17 -19 -47 -3 -10 +57 +10 -98 -36 -10 +64 -54 -33 -89 -23 +92 +93 +100 +78 +71 +67 +38 -80 +83
+38 +48 +88 +8 +14 -38 -32 -34 -62 -19 -76 +92 -50 -34 -55 +17 +99 -10 -10 -74 +65 +33 +34 +24 -73 +32 -88 -27 +19 -23 -16 +75 +72 -77 +67 +74 +46 +52 +83
+21 -32 -58 -51 +79 -100 -77 -87 +37 -14 -60 +6 -46 -75 +96 -16 +59 -64 -87 -91 -46 -80 +93 -15 +5 +43 +56 +83 +7 +48 -65 +64 -23 -49 -61 +83 -89 -67 +65
-65 -86 -37 +82 +53 +24 -64 -80 -72 -92 -65 -38 -98 +71 +64 -42 -60 -10 +29 -54 -53 +71 +88 -13 -85 +69 +40 -100 +87 -36 +24 +16 +47 -97 -22 +38 +43 -8 -53
-55 -75 +48 +65 +75 -42 -5 -66 -34 +44 +34 +59 +55 +46 +22 +43 +37 -63 +36 -36 +50 -31 -65 +57 -21 -41 -95 +64 +86 +8 +90 +19 +73 +27 -44 -3 -88 -27 +40
+58 -88 -43 +31 -98 +67 -64 +23 -38 -33 -52 +14 +19 -78 +47 +11 -87 -40 +71 +80 +21 +25 -41 -79 +57 -81 -26 -12 -73 +53 +73 +44 -86 +72 +47 +49 +94 -47 +80
+79 +56 +90 -53 +66 +70 -59 +34 -12 -52 +10 +60 +95 +39 +15 -73 +82 -10 -32 +52 +63 -34 -50 -70 -33 +23 -38 -45 -64 -75 -34 -40 -17 -34 +44 -45 +59 +40 -7
--- BASE SOLUTION ---
[-15, 97, -53, 33, -34, 16, 42, 41, 53, -33, -61, 70, 55, -96, 31, 7, -74, -62, -13, 68, 5, 13, 48, -83, -56, -43, 81, -30, 24, -1, 60, -37, 100, -77, -61, 38, -88, -47, -7]
[-56, -82, -96, 28, 9, 3, -73, 47, -95, -86, -52, -65, 73, -30, 34, 91, -74, 64, -41, 68, 7, -64, -19, 95, -63, -46, 45, 45, 5, -5, 25, -72, -35, -38, 79, 82, 48, -88, 79]
--- MY SOLUTION ---
[-15, 97, -53, 33, -34, 16, 42, 41, 53, -33, -61, 70, 55, -96, 31, 7, -74, -62, -13, 68, 5, 13, 48, -83, -56, -43, 81, -30, 24, -1, 60, -37, 100, -77, -61, 38, -88, -47, -7]
[-56, -82, -96, 28, 9, 3, -73, 47, -95, -86, -52, -65, 73, -30, 34, 91, -74, 64, -41, 68, 7, -64, -19, 95, -63, -46, 45, 45, 5, -5, 25, -72, -35, -38, 79, 82, 48, -88, 79]
164 == 164
Worked.
TEST CASE: 40
----------------------------------------
40
-97 +91 -92 -74 +9 -3 +73 +64 -41 +78 +7 -9 +78 +49 -97 -76 +88 +37 -60 +63 -3 -90 +60 +27 +45 +3 +81 +1 -7 +50 +64 +96 -89 -74 -16 -66 -17 +9 -17 -7
-49 +45 +31 +45 -9 +15 -45 +95 -13 +88 +30 +33 +34 +24 -43 +74 -48 -40 -91 +10 -86 +47 +86 -67 +41 +11 +17 -6 -77 -15 +92 -16 -95 +32 -49 -98 +32 -14 +45 +64
+87 +80 -34 -66 +59 +10 -82 +47 +49 -78 +91 -44 -6 +40 -66 -97 +62 -4 -16 -49 -92 +80 +99 +56 -85 +6 +58 +96 -29 +45 -92 -13 +3 +15 +5 -36 -40 +70 +3 -64
-69 +43 +7 +86 +52 -46 +11 -41 +64 +30 +87 +95 -62 -67 -95 -91 +6 -84 +59 -39 -60 +70 -36 +45 +67 +10 +77 +53 -17 -24 +3 +42 -97 +24 +81 +1 +42 +97 -91 +58
-28 -18 +25 +51 +46 +5 -89 -67 +41 -26 +28 -14 -72 -46 -24 +31 +25 -35 -6 -91 +14 +85 +72 -44 +97 -73 -2 +23 -84 -93 +91 +7 +98 +24 +3 +90 -71 +54 -95 +74
-7 -47 +77 +47 +91 -24 -88 +28 -93 -99 +43 +99 -12 +17 +7 -81 -53 -16 +42 -72 +72 +54 -43 -42 -45 -66 +11 -66 -81 -8 +34 +8 -96 -52 -22 -55 +100 +84 -3 -87
+62 -15 -49 -89 -79 +55 +18 -33 -85 -34 +96 +18 -7 -45 -70 +36 -28 +66 -17 -48 +18 -67 -49 -18 +79 -89 +29 -6 -65 +36 +48 -3 -67 -70 +44 -41 +28 -30 -93 -53
+7 +74 -3 -66 -82 +8 -94 -67 -98 -98 -40 -81 -78 +41 -37 +91 -77 +17 -79 -82 -48 -56 +65 -43 -95 -17 -98 +65 +30 +0 +29 -39 -79 -75 +4 -71 +50 -45 +21 +13
-82 -80 -33 -16 -72 -12 +0 -65 -92 -20 +70 +65 +4 -68 +42 -71 -53 +36 +49 +99 -69 -64 -97 +73 +99 +87 +41 +50 +99 -17 -93 +13 +50 +30 +1 -61 -15 +5 -18 -14
-80 -79 +77 -57 +77 -93 -68 +54 -47 -43 +40 +63 +44 +27 -6 +82 +69 -17 -10 +25 -83 +51 +76 -44 +28 -23 -57 -44 +77 +78 +12 +89 +32 -49 +67 -96 -54 -74 -66 -18
-19 -94 -64 +79 -26 -92 +36 +45 -16 -98 -11 +18 -40 +51 -100 +94 +34 +10 -44 -93 -87 +43 +6 -23 +7 +71 +94 -3 +60 -90 -45 +55 +54 +76 +74 +94 +15 -58 +99 +48
-92 +34 -10 +71 +43 -77 -63 +74 +53 -62 +22 +0 -36 +65 -30 +15 -79 -52 +48 -50 -6 -2 -5 -99 -38 -70 +31 +93 +8 +13 +6 -67 -72 -91 +27 +16 +65 -66 +60 +19
+49 +23 +98 +15 +47 +35 -87 +76 +22 +72 +24 -50 -86 +89 +79 -53 -48 -1 +3 +60 +71 -3 +70 -64 -33 +100 +79 -98 +69 +51 -77 +34 -75 -74 +58 +90 +51 -53 -32 -95
+21 +81 -88 -58 -8 -93 +94 -71 -68 -78 +61 +12 +83 +40 +30 -7 -90 -33 -62 -58 +32 -2 -3 -75 +81 +3 -25 +61 -54 -81 +77 -4 +34 -18 +4 -31 -35 +6 +56 -11
-64 -89 +61 +19 +33 +17 +95 +35 -88 -89 +78 -55 +70 +2 +21 +23 -21 -26 +0 -24 -98 +57 +17 -14 -69 +32 -3 -50 +2 -3 +43 -60 -75 +21 -80 +36 -58 +58 -26 +24
+97 +80 -1 +69 +92 +57 +23 +8 -57 +75 -67 +88 +31 -38 +38 +44 +40 -79 +26 -54 -54 -72 +6 +28 -25 +85 -54 -37 -59 +55 +37 -67 -39 +18 -34 -2 -14 +16 +90 +12
-87 -22 +75 -59 +63 -38 -7 +57 -50 +12 +55 -91 +99 +55 +69 -32 +76 -2 +54 +18 +41 -14 +69 +50 +22 +22 -30 -90 +95 +45 -4 +55 +74 -30 -74 -91 +19 +77 -2 -27
-17 +37 -31 -65 -56 +56 -36 +16 +13 +83 -16 +25 -77 -93 +74 +75 +9 +55 -96 +1 +10 +94 -36 -49 -64 +91 -40 -98 -62 +19 -52 +64 +1 -61 -98 -85 -86 +41 -72 -31
+20 -3 +1 +100 +28 +54 -58 +80 +51 +15 -2 +65 -50 -9 -67 -6 +24 -93 -69 -21 -66 +87 -100 +97 -8 +94 +4 +54 +48 +42 -53 -59 +70 -37 -31 +44 -64 -24 +16 +13
+28 +62 +98 -58 -33 -46 +38 -18 +28 -22 +67 -50 +26 -38 +17 -70 -23 -21 -16 +46 +86 -3 -51 -53 +71 +86 -65 -57 -52 +12 +95 -87 +85 -28 +28 -98 -21 +100 -36 +60
+42 -47 -29 -4 +39 -33 -10 -87 -87 -71 -99 -61 +88 +50 -80 +42 -6 -94 +6 -85 +50 -69 -38 -28 -42 +18 +37 +1 -62 +66 +44 +77 -74 +44 -58 -33 -63 -45 -62 +4
-2 -70 -79 +20 +69 -78 +21 +11 -76 -59 +60 +41 +49 -88 +27 +9 -23 +58 -97 -9 -78 +19 -30 -59 +31 -42 -91 +10 -46 +34 -51 +47 +93 -64 +63 -43 +99 +45 -17 +46
+99 +94 +81 -33 -86 -80 -61 -57 -64 +45 +67 +69 -95 -68 -28 -96 +53 -54 +13 -92 +49 -35 +26 -38 -23 +76 +71 +89 +70 +5 +8 +35 -50 +19 -91 -61 +18 +80 +21 -16
-20 +85 +76 +38 -99 +49 -43 +67 +47 -67 -21 +3 -23 -11 +34 +94 +12 -64 +36 -8 -95 -26 +29 -89 +2 -21 +95 +76 -52 +9 +22 +35 -51 -9 -58 +99 -35 +2 +95 +72
-34 -20 -84 +10 +80 -16 -17 -46 +20 -94 -83 +12 -95 -1 +53 -96 -29 +91 -87 +39 +73 +10 +18 +74 -17 -50 +65 +28 -51 -75 +78 +5 +41 -34 -82 +59 -69 -97 +10 -18
+82 -46 -60 -72 -87 -49 -4 -5 +42 -68 -77 -12 -77 -62 -23 -36 +93 +85 +41 +33 -6 -38 +10 -68 +90 +31 +27 +38 +88 +81 +99 -80 -10 +47 +61 +92 +72 -32 +2 -84
+40 -95 -58 +88 -100 +34 -82 -2 +59 +100 -40 +23 -81 +38 -2 -99 +35 +17 +9 -85 -34 +51 -30 +88 -50 +53 -17 -97 +73 +26 -65 -85 +95 +44 +31 -37 +11 -13 +61 +47
+36 +100 -32 +99 -15 +33 +55 -30 -32 -58 +14 -63 +73 -93 +20 +79 +39 -87 +29 +45 +4 -83 -62 +9 +21 +90 -98 -82 +24 +90 -95 +100 -96 +6 -43 +82 +40 -30 -100 -93
-27 -79 -82 -28 -100 -42 -54 -97 +93 -50 +37 +42 -77 -13 +88 +85 +64 +81 +19 -33 -92 +96 +61 +2 -38 -26 +94 +7 -88 +51 -2 -8 +90 +66 -12 +95 -69 +70 -6 +75
-57 +61 -17 -48 +93 -32 +32 -6 +65 -86 -13 +16 +40 +10 +53 -38 -62 +6 +96 +84 -8 +25 -23 +28 +8 +83 -12 -90 +62 -21 -8 -40 +94 -77 -21 +11 -37 +57 +88 +14
+50 +46 -2 -93 -58 -44 -66 +63 -13 +26 -11 -98 +55 +96 -16 -88 +17 -98 -53 +64 -65 +93 +37 -97 +64 +38 +60 +96 +63 -1 +54 +58 +96 -78 -89 +96 -77 -16 +91 -1
-78 -65 +83 +78 +29 +92 +85 +100 +4 +41 -45 -100 -19 +87 +80 -15 +44 +31 -99 +68 +87 -22 -33 +72 +29 -45 -5 +30 +83 -43 -33 -8 +61 +61 +95 +30 -75 +76 +54 +14
-77 -76 -80 -46 -55 +26 +33 +47 -86 +23 +72 +5 -88 -83 +53 -54 +91 -78 +99 -53 +95 +66 +11 +97 +34 +59 -89 +14 -19 -65 +45 +18 -40 +71 -47 -22 -4 +72 +77 +49
-4 -56 -82 -84 +50 +76 +85 +0 -6 -55 +40 +22 -15 +57 -69 +32 +97 -6 -42 -72 -71 -99 -99 +33 +80 +33 -89 +35 +19 -81 -51 +37 -75 +47 -34 -20 +15 +2 -13 +2
-70 -39 +79 -54 -3 -34 -37 +41 -33 -91 +32 +89 +95 -50 +36 +2 -30 -75 +7 -39 -63 -92 -42 -98 -51 -54 +28 +43 -42 +64 -8 -26 +6 -37 +8 +39 +93 +93 -99 +82
-25 -22 -44 +68 -37 -65 +23 +11 -32 -87 -12 -58 +30 -61 -78 +42 -28 +78 -39 -5 +45 +10 +7 -73 -61 +79 +75 -9 -9 -86 +22 +30 +29 +54 +93 -51 -43 -39 +47 -45
+93 +19 -38 -56 +2 +8 +50 +0 +1 -97 -49 -76 +43 +96 -26 -39 -8 -11 +45 +8 +17 -87 -72 +73 +100 +32 -12 +68 +33 +34 -85 +39 -5 +14 +18 +71 +16 -75 -44 -60
-46 +81 -53 -76 +91 -69 +31 +77 -50 -49 -33 +1 +46 +93 +35 -88 +74 -14 -37 +98 -84 -10 -7 +89 +90 -65 +34 +37 -52 -24 +70 +38 -2 +47 -97 -55 +31 +58 -44 +100
-95 +41 +31 -28 -3 -93 +80 +44 -13 -85 -37 +14 -86 +0 -96 +86 +61 +37 +42 +88 -96 -62 -73 -10 +18 -99 -37 -77 -85 +56 +14 +25 -20 -69 +85 -50 -53 +22 -5 +83
-48 -83 +66 -91 +63 -64 +22 +66 -67 -68 -43 +28 +25 -41 -74 -8 +30 -47 -28 +35 +57 -25 +44 +7 +99 -71 +77 -67 -38 +95 +3 +9 -82 +0 +6 +58 -90 -40 +72 +85
--- BASE SOLUTION ---
[-97, 45, -34, 86, 46, -24, 18, -67, -92, -43, -11, 0, -86, 40, 21, 44, 76, 55, -69, 46, 50, 19, 26, -89, -17, 31, -17, -82, -88, -21, 54, -8, -40, 47, 8, -51, 16, 58, -5, 85]
[-7, 45, 70, 42, 90, -22, -70, -79, 13, 12, -90, 8, -98, -25, 32, -25, 50, -36, 87, 86, -85, -97, -54, 12, -96, -23, 38, 73, 42, -13, 26, 4, 47, 85, -34, -37, -56, -53, 41, -48]
--- MY SOLUTION ---
[-97, 45, -34, 86, 46, -24, 18, -67, -92, -43, -11, 0, -86, 40, 21, 44, 76, 55, -69, 46, 50, 19, 26, -89, -17, 31, -17, -82, -88, -21, 54, -8, -40, 47, 8, -51, 16, 58, -5, 85]
[-7, 45, 70, 42, 90, -22, -70, -79, 13, 12, -90, 8, -98, -25, 32, -25, 50, -36, 87, 86, -85, -97, -54, 12, -96, -23, 38, 73, 42, -13, 26, 4, 47, 85, -34, -37, -56, -53, 41, -48]
75 == 75
Worked.
TEST CASE: 41
----------------------------------------
41
+95 -21 +96 +81 -41 -5 -15 -28 +12 +39 +83 -89 -11 +85 +53 +76 -85 -21 +53 -10 +8 +60 -96 +85 +74 -22 -8 -15 +58 +98 -65 -45 -61 -79 +28 +10 -46 -16 +77 +94 -77
+7 -78 -33 +66 +88 -95 +2 -40 -26 +29 -25 -13 +42 -18 -52 -25 -49 +54 +64 +29 +95 -34 -62 -14 +56 -54 -70 -17 +82 +51 -36 -41 -47 +68 -82 +41 -12 +59 -73 -30 -71
+2 +92 -22 -61 -79 -50 -8 +41 +21 -21 -17 -84 +69 +20 -42 +67 -85 +98 -66 +66 -87 +80 +58 -24 +75 -9 +54 -81 -97 +96 +26 -37 +63 -83 +31 +97 -70 -8 -43 -58 -97
+67 +53 +28 +40 +53 -100 -62 -47 +77 +91 +46 -11 -73 +59 +11 -9 -25 -95 -28 +94 +73 -10 +47 +82 -23 -85 +61 -97 +57 +87 -95 -49 +4 +33 +23 +36 -23 +83 +73 +18 +71
+16 -66 -38 +41 +88 -38 +29 -5 +46 -70 -95 +37 +65 +59 -82 -6 -68 +33 -52 +20 +46 +31 -63 +31 +2 -57 -20 +35 +91 -77 -67 +32 +57 +52 -43 +69 +54 +47 -32 +55 -22
-24 -93 -96 -38 +65 +29 -39 -38 -33 +33 -52 +9 -33 +86 +45 +82 +81 -16 +54 -97 +88 -81 -75 +98 -81 -89 +50 +79 +96 +91 -74 +18 +21 -95 +97 -33 -72 +57 -92 +78 +24
-76 -52 +88 -66 -5 +72 -36 -20 +29 +58 +4 -52 +33 +52 +2 +73 +28 -100 -53 -100 -58 +32 +34 +39 -6 -20 +78 -52 +9 -43 -61 +10 -92 -17 -72 -33 +62 -47 -30 +6 +46
-49 -29 +94 -66 -90 +73 +67 -54 -60 +57 +88 -53 -79 +72 -100 +24 -87 -89 +37 +79 -14 -95 +88 +83 -37 +28 +19 +97 +45 -33 -68 +12 -98 +81 -28 +61 -14 -17 -77 -82 -55
-97 -29 -45 -25 +53 +67 +38 -99 -75 +17 -62 -4 +82 +90 -91 -53 -5 +81 +71 +85 +0 +18 +20 -13 -60 -89 -99 +69 -30 -56 -93 +79 -41 +2 -6 -55 -11 -64 +84 +11 +75
+31 +56 -2 +95 +12 -30 +55 -23 +24 +47 +65 +28 -44 -3 -14 -26 +47 +80 +54 -11 +88 +9 +57 +62 +14 +79 +53 -82 -55 +79 -54 -76 +37 -79 -21 +54 +69 +36 +30 +76 +22
+39 -68 -40 +79 -84 +13 +95 -77 -91 -34 -81 +50 +89 +28 +24 -75 -31 -13 +86 +77 -67 +32 -35 +51 +20 +0 -82 +39 +55 -32 -48 +24 +47 -86 -56 +33 +65 -69 -88 +12 -11
+2 -79 -92 +24 +19 -25 -75 -24 +64 -28 +68 +97 +99 +91 +11 +80 -31 -59 +70 +92 +52 +81 -27 +15 -31 +32 -58 +99 -53 +4 +2 +39 -24 -45 +53 -59 +44 -71 +47 -7 +7
-51 -46 -28 +89 +45 +89 -85 -81 -28 -46 -53 +99 +26 +55 +60 +42 -59 -10 +93 -93 -17 +30 +84 -68 +59 +69 -53 +78 -3 +3 +58 +64 +6 +86 -84 -7 +82 +15 -69 -13 +8
+79 +98 +81 +8 -35 -2 +62 +20 +87 +31 +48 +90 +86 -56 +34 +75 +34 -97 -69 -95 -90 +49 +42 +90 +5 -16 -11 +63 -24 -68 +9 -64 +62 -53 +39 -96 -13 -11 +49 -59 -44
+31 -73 -85 -12 +20 -100 +34 +32 -62 +56 +94 +4 +9 -4 -71 +95 +92 +42 -53 -35 +81 -57 -87 +24 -86 -35 +34 -44 -54 +7 -76 +84 +81 -95 +53 -93 -56 +77 +11 +62 -53
+18 -72 -10 -11 -99 -50 +91 -33 -99 -43 -73 -28 +63 +87 -18 -78 -63 -39 -27 -24 +80 +98 -13 -68 -31 -61 +58 -18 +14 +53 -92 -72 +26 +25 -57 +43 -62 -51 -3 +15 +54
-54 +96 +83 +95 -81 +82 +76 +95 +12 -67 -54 +53 +86 -100 +49 -17 +67 +61 -37 -3 +57 -59 +96 +47 +65 +33 +14 +26 -45 +2 +54 +69 -7 -76 +99 -100 +80 +78 +51 -97 +85
-46 -32 -71 -12 -43 +51 -24 -8 +73 -82 +17 +61 -50 +59 -77 +56 +93 -92 +86 +53 -70 +30 -86 -13 +70 +9 +93 +60 +49 -56 +61 -13 +67 -34 -1 -27 -88 -14 -95 -89 +22
+20 +59 +41 -92 -41 -65 -56 -52 -10 +99 -40 -34 +42 -50 +62 +100 +13 +90 +12 -85 -4 -22 -65 -43 +95 +92 -4 +67 -80 -14 +57 +67 +59 +5 +26 -60 -12 +95 -51 -6 +69
-2 -80 +21 +52 +4 -69 +32 +74 -7 -83 +31 -55 -53 -7 -20 +74 +87 -7 +65 +64 +46 +54 -59 -90 +65 +68 -65 +29 +16 -89 -69 -8 -96 +69 -1 -72 -97 +93 -46 -23 +89
-85 -82 +44 -37 +12 +52 +86 -96 -3 +26 -46 +31 +33 -57 -19 +39 -26 -81 -61 +56 +55 -15 +14 +71 +93 -60 +78 +21 -52 +43 -50 -61 -59 -50 +96 +4 -79 +73 +31 -36 +2
+95 +67 -71 +100 -62 +77 -32 -74 -21 -7 -63 +76 +48 +17 -61 +12 +28 +85 -83 -59 +32 +37 -7 +25 -1 +39 -19 +56 +72 -78 -47 -28 +64 -76 +55 +19 -55 +83 +95 -24 +84
-9 -25 -42 -85 -30 +80 -12 +48 +99 +47 -52 -31 +54 -53 -59 +44 -43 +59 +39 -89 -35 +97 +29 -74 -18 +99 +20 -63 +45 +81 +42 +38 +79 -54 -84 -5 +18 +84 -70 +42 +81
+42 -58 -66 +36 +76 +16 -24 -68 -7 +76 -79 +21 -13 -56 +17 -52 +0 +8 -23 -81 +60 +40 +51 +5 -66 -28 -83 -57 -71 -75 +70 +24 -33 -31 +44 +21 +73 -94 +87 +45 +10
+80 -48 -24 +42 +55 -20 +72 +66 -5 -4 +69 +70 +6 -52 -64 +100 +54 -27 -91 +32 -33 -21 -76 -63 -93 +90 +49 -79 -62 +92 +57 +99 +75 -36 +59 +16 -66 -44 +80 -70 +35
-77 +6 -44 -32 -13 -77 -78 +25 -59 +73 +27 +26 +6 -48 -5 -86 -2 -28 -93 +97 +94 -57 -78 +96 -28 +81 +70 -29 +23 +22 -51 -96 +3 +97 -68 +59 +85 +90 +98 +91 +31
-67 +79 -50 -18 +80 -40 +65 -20 -3 +29 +36 -28 +51 +37 +13 +80 -27 -6 +10 -29 +27 -34 +2 -9 -61 -5 -4 -86 +69 -38 +58 -71 -41 +65 -26 +94 -1 -36 -27 +99 +80
-61 +91 -18 -52 -86 +46 +21 +51 +7 +11 -2 +93 +24 -7 -40 -2 -20 +44 -1 +23 -35 -52 +64 +59 +92 +67 +77 -19 +36 +62 +99 -24 +77 -1 -26 -62 +51 -60 -18 -41 -67
-65 -44 -70 -46 +63 -24 +84 +38 -63 +92 +82 +17 +59 -46 -72 +48 -12 -89 -38 +8 +39 +46 -95 -60 -2 +96 +85 -83 +66 +36 -83 +16 +39 -47 +35 -66 -59 +1 +13 +62 +42
-17 -46 +80 -93 -4 +4 +91 +35 -54 -67 +11 -63 +70 -32 -24 +26 +20 -74 +63 +31 +70 -58 +24 +51 -67 +56 +5 -69 +76 -42 +43 +16 +44 -83 -18 -62 -27 +71 +59 -78 +17
+80 +53 +52 -46 -96 -37 -46 +72 -30 +12 +89 -56 +47 -76 -78 +95 -47 +51 -27 -72 +88 -96 +13 +85 -6 +18 -70 +93 +69 +98 -2 +59 -21 -48 -52 -45 +80 -52 -70 +51 +53
-27 -58 -71 +93 +43 +20 +73 -66 -22 -39 +76 +50 +11 +75 +58 +49 +21 +33 +85 +51 +99 -34 -72 +90 +92 +72 -36 +97 +21 +6 +50 -30 -32 +21 +15 +47 -87 -28 +76 +59 -66
+87 -81 +47 -6 +70 -78 +39 -16 -9 +61 -98 -48 +16 -76 +61 -55 -67 -40 +0 -48 +17 +89 +22 -20 +39 +3 -92 +6 +65 -89 +30 -71 -36 +2 -57 -31 +50 +0 -73 +5 -46
+35 +36 -27 -34 -33 -58 +11 +89 +65 +72 +59 -44 -71 -69 +81 -43 -92 +84 -96 +20 +29 +16 -36 +79 +2 -17 +6 -65 +65 +84 -10 -96 +39 -26 -30 -42 +67 -46 -62 -35 -77
+44 +64 +40 +24 +98 -26 +62 -55 -33 -77 -55 -51 -90 -20 +41 -57 -88 +1 -88 +97 +90 +9 +68 -98 -93 -17 -83 +73 -89 -32 +74 +58 -85 +25 +40 +47 -62 -40 +13 -61 -23
+85 +47 +5 +0 +47 -100 +27 -23 -75 -13 +99 +21 -57 +56 -70 -1 +81 +66 -29 -56 +65 -27 -41 +24 +13 -78 -34 -53 +87 +47 +33 -24 -86 +21 -90 +19 +37 +81 +9 -18 +67
+1 +76 +59 +1 -87 -13 -88 +89 +1 -75 +5 -8 +60 +18 -5 +94 -24 +42 -14 -8 -76 +54 -34 +2 +25 -34 +24 -38 +59 -91 +37 +2 +7 +72 +69 -20 +10 -15 +75 +26 -7
-27 -95 +44 +71 +50 -96 +70 -96 +10 +64 +96 +95 +18 +91 -23 +37 +53 -65 -97 +84 -61 +36 -13 +42 +3 +88 +80 +89 +13 +99 -63 -66 +96 -85 -28 -82 +77 -81 +98 -98 +4
+64 +5 +84 +71 -93 +91 -6 -9 -53 +5 +13 -73 +57 +17 -1 -57 +89 +64 -9 -14 +14 +70 +10 -39 -80 +45 +62 -44 -37 -38 +21 -39 -52 +76 -70 +17 -46 -43 +67 +22 -74
+20 -76 +15 +48 -71 +43 -65 -66 +49 -11 -10 +39 -10 +53 +9 -45 +0 -62 -30 -72 -1 +42 +19 -62 +16 -54 +53 -25 +89 -60 +28 -38 +78 +75 -14 -21 -93 -72 -50 +34 -87
-96 -51 -24 -66 -47 +86 +48 -74 +30 +36 -41 +94 -2 -72 -56 -41 -66 +72 -37 -10 -18 -46 -41 +31 +73 +15 +36 -39 +43 -9 -42 -26 -30 +56 +78 -53 -78 -56 +44 -52 +18
--- BASE SOLUTION ---
[95, -78, -22, 40, 88, 29, -36, -54, -75, 47, -81, 97, 26, -56, -71, -78, 67, -92, 12, 64, 55, 37, 29, 5, -93, 81, -4, -19, 66, -42, -2, -30, -36, -26, 40, 19, 10, -81, 67, 34, 18]
[-77, -30, -43, 83, 54, -33, -72, 81, -41, -76, -48, 4, -3, 63, 34, -61, 65, -13, -65, 54, 55, -59, 39, 8, 54, -86, 13, -7, 59, -63, 89, -39, -9, 89, 62, -100, -87, 71, 84, -76, -96]
--- MY SOLUTION ---
[95, -78, -22, 40, 88, 29, -36, -54, -75, 47, -81, 97, 26, -56, -71, -78, 67, -92, 12, 64, 55, 37, 29, 5, -93, 81, -4, -19, 66, -42, -2, -30, -36, -26, 40, 19, 10, -81, 67, 34, 18]
[-77, -30, -43, 83, 54, -33, -72, 81, -41, -76, -48, 4, -3, 63, 34, -61, 65, -13, -65, 54, 55, -59, 39, 8, 54, -86, 13, -7, 59, -63, 89, -39, -9, 89, 62, -100, -87, 71, 84, -76, -96]
173 == 173
Worked.
TEST CASE: 42
----------------------------------------
42
-32 +96 -53 -51 -59 -25 -82 +35 +12 +8 -33 -50 -15 -5 +17 +94 -84 -48 +2 -57 +12 -62 -76 -81 -27 -34 +87 +61 +79 +9 +1 +16 -54 +53 -76 +35 -34 -77 -58 -47 +42 -25
+71 +92 -30 +22 -6 -5 +70 -76 +85 +79 +1 +47 +51 +54 +50 -92 -71 +37 +38 +96 +68 +82 -23 -94 -83 -23 -35 +22 -74 -24 -55 +83 -23 +43 +99 -34 -42 +64 +92 +45 -39 -36
-12 -93 -25 -3 +69 -87 +35 -48 +12 +54 +3 -31 -32 +65 -65 +49 +88 +70 +38 +89 +20 -67 +81 +44 +43 +77 -93 +22 -47 +78 +8 +91 -82 -9 +55 -65 -92 -37 -29 +79 -69 +17
-47 -72 +82 -28 +65 -47 +59 -8 +30 -41 -9 -4 +68 +20 -93 +29 -38 -78 -61 +68 -36 +98 +10 -13 -41 +21 -74 -36 +18 -90 +83 +31 -53 -59 -70 -34 +81 -29 -37 +51 +71 +44
-61 -1 +1 -95 -3 -4 +41 +21 +44 -7 +64 -76 +73 +17 -44 -43 -27 -76 +90 +50 +46 +45 -78 -60 +38 +39 -69 -59 +35 -57 -13 -67 +86 +82 -15 +6 +5 -35 -40 -87 +54 -12
+73 -93 +37 -15 -72 +57 +22 +80 -46 +79 +65 -36 +91 -77 +33 +33 -16 +55 -71 +24 +33 -72 -49 -58 +56 +8 -66 +28 +73 +82 -27 +74 +88 +59 -90 +76 -85 -35 -28 -21 +84 +56
-29 -9 -14 -25 +21 +90 -85 +6 -67 +20 +36 +74 +0 +18 +37 -67 -91 +30 +36 +100 +45 +94 +87 -60 +57 +82 -26 -33 -37 +49 -50 +100 +67 +13 -25 -34 +45 -96 +4 -97 +43 -16
+24 -71 +93 -46 -100 -12 +24 +53 -90 -16 -100 +83 +5 -70 +86 +34 +64 -36 -63 +56 +96 -28 -11 +34 +33 +2 -58 +38 -24 +27 +19 +32 +24 +76 -74 -85 -46 +77 -1 +73 -17 +39
-98 +28 +22 -7 -44 +58 +30 -56 +50 -83 -29 -83 +54 +43 +45 +97 +17 +16 -56 -95 +87 +55 -3 -20 -36 +43 +11 +84 +56 -11 +18 +53 -62 -66 -33 -48 +35 +62 -65 -72 -3 -98
-29 -13 +1 -27 -48 +16 -78 +91 -60 -34 -50 +67 -29 +21 +16 +64 -18 -91 -80 -29 +87 -70 -100 -87 +12 +91 +91 +58 +28 -61 -85 -68 -29 +35 -35 +27 -38 -92 +74 +78 -50 +6
-81 -69 +96 -53 +50 +36 +39 +9 +7 -20 +70 -89 +95 -56 -88 -14 +53 +24 +49 +27 +26 -42 +59 +38 +24 -67 -96 +34 +16 -15 +92 -79 -59 +5 +8 +56 -53 -92 +64 +72 +1 +15
-69 +38 +32 -92 +56 -45 -80 -36 -88 -46 -64 -74 -28 -50 -58 +54 -36 +23 -99 +73 +89 +62 +13 -41 -65 -91 -73 +78 -82 +87 +6 -37 +83 +76 -59 -5 +2 -10 -46 -22 +53 -35
+54 +96 -9 +49 +83 -94 -41 -95 +36 -95 +62 +92 -9 -23 +100 +8 -65 -55 -15 -23 -40 +53 -79 -97 +71 +75 -52 -76 -45 -9 +6 -86 +57 -43 -3 +27 +84 +75 +92 -52 -27 +46
+56 -11 +38 +85 +65 +32 +10 +68 +18 +41 -61 +75 -55 -24 -36 -98 +98 +43 -93 +32 +98 +38 -79 +91 -55 -44 +44 -76 +87 -40 +52 +76 -19 -40 +83 +97 +69 -31 +60 +61 -92 -86
-80 -99 +67 +39 +56 -24 +91 +71 +84 +68 -75 +34 +73 +88 -34 +47 +75 -36 -49 -15 +22 +99 +80 -25 +26 -77 +77 -81 -78 -14 -22 +85 -75 -95 -81 +43 +10 -91 -53 -12 +79 -15
+44 -67 +15 +23 -2 -50 +51 +16 +15 +69 -84 +90 +96 -50 -24 -51 +46 -59 +43 -90 +21 +58 +40 -12 +12 -61 +37 -18 +47 +27 -21 -70 +87 -60 +97 -75 +1 +63 +31 +97 -66 -42
-45 -28 -86 +27 +26 +44 -53 +93 +68 +1 +87 +4 +96 +4 -71 -16 +26 -95 +51 +20 +57 +78 +23 -92 +76 +31 +38 +58 -47 -60 +14 -27 +28 +36 -47 +11 -72 +92 -74 +29 +70 +77
+76 +88 -50 +49 -88 +70 +36 +66 -79 +92 -61 +10 +47 +0 +54 -14 +2 +94 -35 -38 -61 +96 +55 +1 -60 -70 -36 -10 -75 -94 -26 -3 +27 -22 +92 -38 +15 -43 -35 +7 -80 -74
+35 -56 +92 -16 +22 -93 -67 -89 -74 -96 -53 -5 +17 +95 -77 -27 -41 +29 -84 -54 +51 +81 -70 -28 +46 -71 -91 -99 +8 -21 +26 +21 -62 -54 +0 +12 +59 +87 +23 -1 +41 -39
+73 +100 +1 -70 -25 -87 +23 -14 -92 -78 -26 -96 -44 +39 +62 -45 +26 -55 +69 +94 -33 -16 +10 +75 -21 +65 +56 -67 +70 +48 +3 +25 +70 -8 -3 -60 -83 -28 +20 +62 -78 -47
+60 +11 -21 +44 -56 -23 +80 +44 -9 -99 +90 -78 +9 +53 -12 +53 +67 +79 -70 -60 +90 +56 -70 -30 +13 +78 +22 +87 -63 +70 -68 +22 -60 -44 +72 -56 -43 -16 +39 -34 +41 +51
-55 -24 +23 -96 -39 -65 +11 +33 +21 +3 +23 +83 +67 +71 +100 -93 +16 +41 -96 -3 +9 +20 -50 +60 -76 -42 +7 -53 +86 -85 -89 +4 +18 -98 +43 +15 -64 -83 -3 +92 +94 -15
+86 -30 -75 +38 +74 -19 -94 -4 +1 +97 -36 +58 +86 -2 +6 +66 -95 -78 +99 -69 -61 +94 -97 -87 +44 +33 +27 -38 -13 -47 -88 +45 +3 -27 +67 +85 +46 +49 +8 -44 -26 +65
-2 +6 +25 -67 -25 +97 +17 -96 -46 +5 +0 -52 -32 -23 +30 +81 -25 +60 -34 +44 -21 -72 -49 +36 +96 -64 -63 +73 -22 -21 -41 +37 -90 -41 -36 +73 +41 -50 +21 +89 +74 +35
-42 -5 +34 -37 +33 -68 -84 +94 +45 +54 +41 -6 +47 -6 -9 +28 +27 +58 -25 +91 -5 -88 +69 -48 -82 -30 +83 -58 +61 +80 +51 +1 -38 +21 +57 +63 -32 +67 -84 +11 +80 +56
-68 -6 -78 +3 -97 -53 +18 +19 +92 -16 -52 +60 -71 +6 -77 +54 -9 -34 -64 -77 +96 +81 -19 -6 +33 +99 -60 +48 -69 +25 +10 -86 -80 +48 -31 +78 +74 -82 -4 -52 -33 -24
-55 +59 -4 -50 -51 +80 -69 +55 -30 +42 +76 +100 +24 +8 -44 +63 -42 -52 -95 +59 +38 -61 -39 -15 -73 +18 -71 +12 +89 -23 -5 -45 +67 -74 -97 -74 +11 -59 +77 -21 -16 +53
+59 +8 +31 +100 +37 +56 -2 -54 -37 +53 -37 +19 -64 -46 -29 -4 -21 -23 -32 +5 +90 +29 +10 +26 -35 -21 -46 +96 -6 -81 -32 +10 -7 -39 +21 -28 -72 -23 +88 +11 +18 -20
-86 +83 -58 -79 -16 +78 -72 +17 -12 -68 -83 +59 +82 -98 +67 +20 -41 -59 -71 +62 -97 -9 +23 -42 -47 +26 +41 -92 +18 +89 -9 +51 -94 +15 +87 +27 -29 +59 -42 +88 +3 -48
-56 +3 +40 +15 +24 -51 -44 -20 +65 +69 -75 -89 +79 -26 -64 -45 +21 +60 +47 +70 +9 +16 -26 +90 -44 +79 +40 -89 +21 -84 -65 -46 -47 +22 -83 -71 -92 -36 +92 -84 +51 +58
-83 +80 +2 +69 +98 +86 +25 -74 +15 -72 +61 -50 +90 +85 -62 +81 +22 +89 +43 +34 -55 +41 -88 -37 +96 -25 -47 +90 +23 -50 +42 -21 -53 -41 -47 +16 +69 -55 +21 +63 -50 -46
+31 -62 +23 -45 -51 -10 -63 -81 +91 -56 +82 -11 +23 -29 +100 +53 +96 -48 -73 -33 +46 +98 +23 -94 +29 -75 -91 +74 +34 +60 +87 -21 -81 -91 +44 +59 -72 +16 +36 -34 +100 -97
+46 +16 +30 -64 -51 -94 -21 -29 +1 -55 -56 +78 +7 -69 -19 -68 -6 +70 -92 -65 -21 -6 -7 +22 +86 +33 +52 +98 +40 -13 -48 -22 +16 +29 +66 +25 +77 +17 +16 -9 +57 +65
-88 +21 -67 +1 -74 -69 +71 +83 +29 -31 +21 -62 +24 +45 +72 +1 -1 +14 +12 -48 +21 +13 -62 +9 +7 -68 +81 -90 -49 +35 +14 +85 +20 -32 -63 +77 +72 +56 +61 +19 +85 +24
-17 -63 +66 -41 -26 -86 +52 -81 +86 -56 +57 -32 +59 -77 -43 -45 -100 +63 -100 +7 +63 -33 -93 -75 -45 -76 +85 +30 -70 -21 +73 +99 +54 +18 -48 -32 +25 -87 -86 -44 -38 +64
+12 +100 +52 -100 -66 -31 +60 -92 -61 +53 +75 -62 +94 -31 -84 -78 -25 -16 +78 +54 +41 -83 +75 -17 +34 +90 -25 -10 +40 -72 -75 +59 -76 +12 -17 +32 -90 -30 +85 +92 +74 +15
-10 -76 +59 +47 -3 +73 -78 +93 +2 +60 -29 -82 +49 +33 -84 +74 -40 -68 -41 -86 -71 -4 -83 -77 -1 +84 +21 +85 -88 -19 +65 +14 +13 +70 +28 +68 -28 -12 +34 -48 +44 +52
+88 +92 +83 -1 +3 -55 -88 -86 -61 +87 +76 +100 -99 -52 +51 +100 +94 -76 -26 +69 +67 +88 -9 -92 +79 +86 +27 -80 -59 -52 -88 +26 +64 -17 +46 -56 -12 +42 +43 +63 +51 -37
+25 -68 -33 -100 +72 -8 -38 -41 +85 +10 +12 +13 +25 -29 +58 -81 +73 -87 -17 +90 +29 +13 +61 +49 +22 -36 -4 +48 +68 -25 -16 +98 +99 -65 -17 +76 -56 -13 +58 +79 -70 +2
+64 +66 +85 -13 +34 -44 +88 +97 -24 +68 +60 +51 -98 +83 -84 -65 -18 +13 -58 +44 -7 +96 +79 +92 -74 -88 -65 +81 +86 +98 +44 +56 +99 -25 +54 +81 -39 -41 -51 -57 +50 +72
+3 +19 +69 -68 +59 +5 -78 +48 -12 -56 +35 -12 -24 -25 -10 -59 +61 +78 +61 -47 +29 -48 -64 -70 -9 +43 +58 +84 -42 +72 -61 -32 +86 +51 +93 -52 -79 -73 -43 -29 +78 -40
+94 +1 -25 -23 +2 +50 +73 -87 -22 -59 -78 +79 +100 -1 +36 -21 +6 -78 +41 +1 +48 +61 +64 -88 -26 +6 -76 +8 +37 -13 -27 -41 +24 +24 +88 +27 -23 +47 -64 -67 +31 +75
--- BASE SOLUTION ---
[-32, 92, -25, -28, -3, 57, -85, 53, 50, -34, 70, -74, -9, -24, -34, -51, 26, 94, -84, 94, 90, 20, -97, 36, -82, 99, -71, 96, 18, -84, 42, -21, 16, -32, -48, 32, -28, 42, 58, -57, 78, 75]
[-25, -39, 79, -37, -35, -85, -34, -74, -66, -29, -79, 6, -9, 87, -81, 37, 31, -60, -28, 10, 56, 9, -69, -34, 58, -9, 63, -29, -98, 79, -50, 82, -55, 29, -81, 60, 73, 3, -100, 85, 19, 94]
--- MY SOLUTION ---
[-32, 92, -25, -28, -3, 57, -85, 53, 50, -34, 70, -74, -9, -24, -34, -51, 26, 94, -84, 94, 90, 20, -97, 36, -82, 99, -71, 96, 18, -84, 42, -21, 16, -32, -48, 32, -28, 42, 58, -57, 78, 75]
[-25, -39, 79, -37, -35, -85, -34, -74, -66, -29, -79, 6, -9, 87, -81, 37, 31, -60, -28, 10, 56, 9, -69, -34, 58, -9, 63, -29, -98, 79, -50, 82, -55, 29, -81, 60, 73, 3, -100, 85, 19, 94]
481 == 481
Worked.
TEST CASE: 43
----------------------------------------
43
+6 -22 +78 +80 -88 +55 -6 +7 -80 +7 -42 -65 -75 -85 -59 -22 +45 +33 -48 +44 -84 +99 -52 -43 -67 -50 -69 -33 +82 +6 -32 +12 -96 +12 +55 -39 +39 -34 -4 -51 +38 +36 +81
+70 +13 -66 +78 +38 +16 +93 +70 -14 +27 -7 -78 +99 -51 +53 +53 -91 -96 -25 +45 -77 +25 +18 +78 +76 -62 -72 +68 -11 -7 -78 +21 -12 -55 +97 +41 +55 +76 -52 -56 +76 -63 +68
-12 +94 +61 -84 -94 -36 -22 +27 +27 +70 +27 -76 -57 -42 +47 -15 +65 +71 +60 +82 -1 -16 -54 +30 +29 -5 +43 -5 -32 +20 +15 +76 +82 +0 -25 -16 -47 -10 -68 +53 +83 -20 -85
-29 -53 +67 -75 -60 -75 +41 +60 +51 +63 -97 -82 +4 -44 +86 +75 +78 +28 -8 -81 +99 +49 -38 +27 -79 -1 -68 +22 +29 +77 -13 -52 +56 +53 +60 +59 -28 +8 -74 -44 +12 +45 -87
-91 -31 +69 +56 +56 -26 -81 -73 -81 -87 +90 +71 -44 -12 -50 -46 -38 +32 +39 +73 +28 -43 -69 +88 -60 -6 -27 -42 +93 -42 +81 +76 -74 +40 +84 +70 -86 +83 +17 -44 -47 -30 -42
-15 -40 -71 +62 +32 -28 -18 +31 -99 +70 +6 +44 +53 -68 +33 +74 -52 -63 +5 +12 -4 -39 -62 -92 +87 -79 -36 +97 +22 +65 +66 +2 -54 -30 +48 +9 +83 +46 +96 +50 -85 -97 +38
-60 +45 +33 -61 +45 -7 +41 +61 +43 -91 -35 -29 +85 +8 +98 +15 -52 +61 -11 +6 +74 +95 -60 -82 -50 -41 -21 -99 -86 +53 +45 +28 +37 +13 +88 -36 +41 -40 +24 -64 -20 +26 +40
-89 -6 -9 -71 -9 -32 -81 +62 -6 +20 +22 -2 -63 -83 +61 +74 -100 -1 -15 +35 +71 -26 -81 +67 +82 +60 +87 +8 +66 +42 +1 +50 +37 +82 +45 +98 -13 +14 -13 +72 +2 -88 -68
+83 -19 -6 +48 -47 +3 -8 +53 -21 +70 +61 +72 -83 +55 +97 +32 +41 +22 +82 +86 -18 -11 -17 -39 -75 +29 +35 +30 -64 -78 -70 -73 -12 -91 +0 -42 -93 +31 -81 +88 +32 -33 -21
+49 -37 -94 -9 -30 +95 +7 -71 -34 -39 +99 +68 +60 -84 +76 +50 +6 +67 -16 -20 +2 +61 +43 -86 -76 -40 +78 +75 -97 -56 +10 +0 -15 -45 -68 -72 -27 -6 +81 -21 -33 +16 -45
-54 +64 +15 +57 -97 -51 -20 +27 -60 -52 -94 -45 -50 +14 -8 -44 +79 -8 -43 +29 -65 -50 -74 -90 +96 +61 -60 +96 -41 -19 +45 -21 -56 +94 -80 +30 -99 +29 +92 +20 -74 +77 -40
-8 -50 -23 -3 -65 -85 +51 -41 -34 +20 +15 +4 -3 +4 +98 -99 -67 -86 -12 -38 -78 +38 -93 -7 +16 -26 +9 -89 +58 -82 +69 +25 -16 -39 +84 +18 +73 +17 +9 +65 +3 +10 -81
-27 -47 +99 -87 -43 -59 +12 -30 +79 -99 +52 +53 +84 +59 +1 +70 +29 -69 +79 +14 +63 -42 -74 +1 -3 +61 +23 +72 +46 -73 +4 +61 +20 +35 -83 -24 -98 +10 +51 -16 -95 +51 -6
-67 +18 +81 -84 +12 -54 +66 +12 +60 +88 -29 +72 -5 +82 -53 -75 +73 -5 -34 -82 +93 +73 +64 -91 +12 -81 -40 +84 +8 -61 -37 +91 -100 +84 -74 +41 -46 -54 +25 +51 -14 -12 -3
-88 -7 -54 -11 -39 -41 -70 +55 +38 -69 -62 +31 -25 -10 -79 +1 +11 -47 -83 -9 -64 -86 -23 -1 +25 -67 +83 +82 +47 -77 -85 +89 +13 +48 +24 +99 +91 +33 +63 +74 -25 +85 -11
+0 -47 -16 -95 -90 +100 -97 -66 +45 -3 +76 +68 +9 -62 -58 -27 +28 -4 -22 +13 -88 +79 +31 +66 +67 -29 +93 -57 -10 -7 +97 -28 +88 -76 -60 +67 -58 -61 +7 +9 +98 +61 -6
+84 +98 +96 -63 -25 +22 +56 -70 +63 -41 +79 -59 -2 +67 +20 +81 -17 -71 +71 -44 -2 -52 -44 +35 -18 +52 +11 -15 -18 -99 +73 +2 +78 -81 -1 -92 +96 -2 -52 +61 +68 -94 -67
+55 +13 +30 -67 +79 -61 +27 -66 -16 -64 +48 +31 +17 -90 +17 +6 +88 -97 -31 -14 -28 -1 +69 +37 -57 +89 -18 +21 +0 -45 +76 +53 -90 +79 +19 +18 -1 -35 +18 +2 +81 +45 +85
-66 +35 +4 -89 -89 -18 +19 -74 -85 -15 -17 +29 -67 +1 +71 +14 +53 +22 +86 +66 -22 +26 -28 -35 -45 +40 +38 -37 +80 -18 +16 +80 +24 +30 -14 +49 +86 -88 +41 +74 -2 +60 -74
-7 -79 +13 +88 -44 -10 +99 -11 +72 -88 -10 -4 +74 -39 +8 +60 -23 +83 +88 -9 -94 +17 -70 -52 +9 +37 -23 -66 +61 -89 +70 -25 +21 -2 -92 -42 +32 +93 -13 +52 +51 +74 +62
-98 +62 +35 -90 +25 -38 +71 +100 -49 -65 +66 -91 -88 -30 +52 +83 -23 +71 +7 -70 -47 -38 +52 +1 +53 -57 +21 -39 -43 -50 +79 +15 -43 +21 +94 -39 -74 +15 -94 +21 -62 +59 -66
+86 +20 -73 +47 +61 +23 +49 +87 -17 -52 +65 +42 +4 -25 -58 +2 -31 +28 +59 +98 +45 +84 -52 +14 -61 +60 +41 -24 -4 -51 +88 +76 +35 +50 -49 +56 +45 -50 -68 +8 -100 -77 -21
+20 +37 -77 -82 -19 +17 +69 +88 +98 +80 -37 +63 +45 +14 -78 -51 +52 -84 +47 +94 -81 -53 -17 -13 +65 -53 +29 +44 -20 +94 -84 +8 +94 -77 +76 +28 +71 -50 -57 -47 -100 -72 -82
+51 -70 +0 +65 -56 +34 -55 -68 -15 +97 +52 +90 -7 -41 -62 +55 +99 -86 +63 +67 +20 -29 +30 +80 +64 +46 +66 -45 -77 +20 -83 -18 -25 -34 -22 +15 -9 -16 +71 -37 -79 +68 -53
+9 -58 -57 +89 -30 +22 +83 +31 +66 +26 +19 -4 -66 +55 -22 +7 +14 +45 -81 -21 +74 -56 -26 -100 +4 -1 +38 -91 -77 -38 -30 -65 +54 -33 +14 +41 -57 -70 -7 +29 +53 -27 +3
+92 +19 -37 -75 -38 +4 +67 +14 +58 -12 +17 -4 -61 +39 +77 -95 +23 +66 -68 +12 -92 +100 -75 +17 +9 -91 -10 -51 +92 -21 -58 +58 -94 -81 -17 +100 +90 +18 -54 -68 +75 +44 +64
-82 +28 +40 -28 +33 -75 +55 +88 -11 +45 +85 -10 +79 +54 +35 +75 +38 +96 +46 -78 -46 +6 +7 -14 -91 -96 +32 -60 +49 +82 +48 +97 -19 -32 -81 -78 +78 +54 +85 +27 +7 -57 +97
-34 +22 -34 +2 -90 -89 +87 -24 +66 -46 -89 -100 +37 -15 +58 -92 +36 -100 -35 +31 -63 +97 +82 +84 +16 -93 +33 +36 -19 -60 +35 +68 +20 -7 -48 +21 -24 -100 +74 +69 -84 +94 +84
-94 -78 +87 -71 -26 -98 -73 +35 -49 +68 -18 -13 -100 -82 -79 +54 +16 +94 -90 +29 -29 +49 -88 +88 -38 +59 +41 -5 -65 +85 -70 -51 +45 +21 -39 +10 -15 -93 -10 +22 +94 -68 +17
+59 -12 +71 -21 +67 +80 +49 -83 +57 +23 -97 -95 -91 -78 +81 -11 -44 +25 -91 -97 +58 -40 -18 +20 -96 -76 -67 +27 +31 +97 +100 -82 +33 -71 +91 +5 -9 +25 +71 -14 -84 -28 -11
+47 +89 -65 -26 +45 -14 -39 -100 -93 -23 +1 +32 -87 +49 -33 +65 -14 +61 -31 -44 -56 -35 +90 +100 -32 +13 +97 +9 +8 -72 -2 +63 +43 +49 -35 +37 +9 +14 +27 -50 +29 +49 -63
-61 -64 +59 -23 -23 -34 +90 +89 +17 +22 +20 +36 -64 +15 +30 -39 -62 +54 +46 +28 +34 -77 -77 +84 -95 +61 -36 +38 -97 +96 +37 -35 -12 +53 +99 -47 +74 -88 -26 -65 +33 +31 -71
-20 +74 +7 -30 -58 +89 +86 +37 +99 -1 -45 +11 +39 +73 -33 -66 -61 -40 -26 +43 +93 +27 +8 -54 +89 -39 +51 -29 +73 +29 +29 -7 +33 -11 +58 +38 -24 +82 +77 -70 +59 -11 +54
-12 +100 +74 -18 -13 +89 -93 +98 -18 -18 -92 -21 -24 +91 +100 -68 +81 -52 +52 -84 +4 +43 -88 -13 -28 -18 +43 -85 +94 +12 +92 +80 -34 +84 +63 -14 +84 -60 +74 +5 +88 -35 -10
+79 -74 +53 +89 +58 +30 -20 +88 +3 -26 +67 +84 +89 -73 +52 -47 -97 +74 +38 +23 -100 +20 +79 -72 -47 -71 +14 -74 -13 +35 +84 +3 -69 -79 +31 +49 -83 +87 -36 -32 +39 -15 +75
-84 -30 -10 +50 +98 +93 +34 +60 +35 +43 +87 -29 -15 -67 +4 -97 -1 -38 +41 -95 +44 +9 -4 -22 -20 +84 +82 -31 -43 -52 +5 +43 +26 -84 -72 +40 +32 -42 -52 -62 +14 +64 +93
+100 +85 +38 -5 +26 +51 +45 +30 +13 -73 +91 -13 -95 -51 -100 -8 -16 +79 +69 +76 +56 +25 -18 +78 +10 -15 -73 +99 +46 +6 +9 -65 +53 +7 +30 -37 -3 -53 -71 -43 +83 +93 +63
-9 -4 -14 +100 +91 -46 -68 +84 +63 -82 -48 +9 +12 -17 +8 -97 -68 -4 +7 +22 +17 -3 -40 +63 +87 -46 +44 +6 +98 -30 +45 +0 -10 +66 -73 -31 +12 +35 +48 +77 +52 -36 +22
-56 -31 -17 -16 -25 -78 -82 +42 +50 -70 +75 +34 -22 +77 -36 +40 -87 -50 +71 +18 -13 +22 +37 -81 -50 -35 +20 +27 -48 -89 +27 +17 -81 -32 -22 -93 -41 +6 +45 -23 +57 +50 +97
+85 -53 +89 -45 +53 +90 -64 -12 -73 -6 -86 +97 -75 -98 -57 +64 +26 -51 +20 +83 -86 +66 +54 +82 +14 +95 +60 -86 +33 -16 -90 +17 -45 -72 +23 -88 -92 -2 +24 +70 -17 -64 -68
-52 -81 -28 +26 +17 +56 +31 -23 -36 -81 +41 -3 -19 -5 +92 +18 +61 +71 -1 +34 +56 -9 -25 +73 +1 +92 +82 +58 +29 -3 -47 -73 -74 +98 +78 -60 +14 -83 +4 +30 -88 +37 +28
+34 +86 -98 +67 -45 +37 -86 -95 +52 -4 +9 -12 +14 +68 +72 +29 -13 +24 -73 +15 -46 -50 +12 -89 -62 +88 -48 -64 -9 +35 -93 -81 +11 -70 -60 -48 -90 +87 -76 +39 +73 +10 +65
-19 +84 +11 +83 +2 -78 +44 -91 +34 -99 -46 -95 -81 +21 -91 -4 -68 -96 +12 +9 +68 +44 -57 +95 -34 +57 +10 +19 -28 -74 +63 -48 -33 -29 +36 -32 -93 +14 -2 -13 -87 -49 +93
--- BASE SOLUTION ---
[6, 13, 61, -75, 56, -28, 41, 62, -21, -39, -94, 4, 84, 82, -79, -27, -17, -97, 86, -9, -47, 84, -17, 80, 4, -91, 32, 36, -65, 97, -2, -35, 33, 84, 31, 40, -3, 35, 45, 70, -88, 10, 93]
[81, -63, 83, -44, 17, 46, 41, 98, 0, -45, -56, 25, 4, -61, 47, -57, 11, 89, -45, -52, 52, 84, -81, 67, -81, 66, 38, -92, -79, -78, -87, 36, -45, -18, 3, 60, 45, -46, -25, -45, -28, 86, -19]
--- MY SOLUTION ---
[6, 13, 61, -75, 56, -28, 41, 62, -21, -39, -94, 4, 84, 82, -79, -27, -17, -97, 86, -9, -47, 84, -17, 80, 4, -91, 32, 36, -65, 97, -2, -35, 33, 84, 31, 40, -3, 35, 45, 70, -88, 10, 93]
[81, -63, 83, -44, 17, 46, 41, 98, 0, -45, -56, 25, 4, -61, 47, -57, 11, 89, -45, -52, 52, 84, -81, 67, -81, 66, 38, -92, -79, -78, -87, 36, -45, -18, 3, 60, 45, -46, -25, -45, -28, 86, -19]
503 == 503
Worked.
TEST CASE: 44
----------------------------------------
44
-19 -6 -17 -11 +75 -73 -52 +8 -50 +89 -60 +73 -91 -41 +90 +56 -30 -1 -93 +68 +33 +78 -88 -15 -11 +22 -43 +60 +64 +47 -89 +46 -84 +54 +37 -11 -72 +21 +3 +96 +5 -84 +77 +90
-8 +67 +27 -28 -63 -33 +30 -48 -86 +75 +75 +17 -41 -18 -91 -73 +44 +91 -95 -63 +71 -18 -89 -78 -24 -32 +88 -78 +7 +100 -10 -66 -89 +1 +15 -35 +95 +2 +75 -94 +65 -97 +33 +3
-68 -51 +97 -34 +36 -5 +35 +79 +44 -46 -48 -14 -36 +58 -34 -34 -12 +9 +31 -35 +36 -68 +74 +48 +82 -70 -56 +25 +5 -86 +49 -78 +9 -47 +42 -96 +51 -57 +11 +66 +23 +28 -98 +47
+95 +75 -42 +32 -36 +37 -34 -2 -51 -84 -95 -25 -80 +74 -77 -60 +9 +76 +18 -95 -72 -92 +10 -75 +93 -99 +70 +87 -5 -51 +61 -53 -65 +24 -3 -33 -64 +81 -43 +71 +94 +27 +62 -54
+66 +89 +76 -71 -13 +43 +48 +16 +95 -79 +1 -61 +62 +4 +34 -31 -51 +32 +56 -71 +54 +68 -20 -66 -6 +8 -56 +23 -17 -13 -24 -83 +8 +34 +18 -23 -67 -95 -53 +23 -21 +20 +59 -42
-82 -93 -25 -94 -42 -44 +59 +51 -59 +50 +17 +20 -16 -35 +25 -82 -45 -26 +69 +85 +2 +4 -63 -87 -25 +74 +34 +13 +65 -52 +74 +85 +82 +56 -15 -63 -13 +71 -45 -89 +66 -80 +57 -50
+63 +7 +40 -91 -21 -15 -82 +83 -63 -13 -11 -100 +96 +69 +73 -35 -18 -62 +22 -52 -68 -86 +56 -58 -10 +13 +64 -53 -79 +44 -90 -47 +28 +48 +34 -9 -29 +36 +42 +65 +14 +43 -74 +66
-46 +4 -66 -18 -46 -42 -53 -79 -35 +97 -49 -13 -94 -17 +91 +5 -73 -94 +92 +4 +63 -21 +95 -57 +69 -10 +49 +28 -14 -63 +55 +73 -87 -6 +6 -40 -77 +20 +33 +52 +17 +28 -95 +96
+100 +15 -3 +23 -68 +22 -78 -54 -1 +42 -5 -64 +23 -11 +89 +31 +37 +99 +44 -2 +2 +30 -54 -51 -54 +63 +58 -90 -78 -95 -49 +20 -33 -17 +92 -14 -61 -60 +29 -85 -60 +37 +0 +26
+52 +81 +12 +9 -15 -9 +32 -15 -91 +76 +49 -39 +1 -13 -66 +24 -69 +34 +48 +9 -24 +91 +87 +66 +7 +4 -91 +52 +21 -40 -94 +57 -55 +83 +90 +32 +88 +57 -59 +53 -49 -69 -54 -15
-27 -65 -14 +32 +38 +18 +62 -59 +41 -2 -93 +17 -30 -87 -5 +25 -33 -69 -27 +82 -25 +31 -18 -39 -38 -67 -87 -65 -13 +86 +82 -71 +70 +13 -55 +8 -100 +22 +100 -79 +24 +12 +13 +13
-55 +56 +15 -70 +73 +0 +75 +80 -22 -92 -38 -30 +65 +94 -23 +56 +73 +49 -93 +48 -11 -68 -98 +26 -47 +34 -42 +70 +51 +70 -60 -3 +66 +86 -12 +90 -9 -67 +46 -27 -54 -97 +95 +6
+38 -22 +79 -84 +88 +10 -7 +97 +91 -29 +7 -93 -4 +33 -9 +24 +10 -13 +58 +38 +55 +74 +72 +70 +67 +50 +68 -63 +94 +99 -37 -15 -2 -19 +90 -1 +79 -93 +99 +99 -79 -32 -22 -91
+67 +88 -41 -12 +42 +21 -69 +93 -44 -67 -31 -94 +24 +20 +55 +82 -78 +8 +87 -95 +94 +2 +7 +76 +45 -85 +89 +24 -20 +19 +50 +69 +95 +26 +60 +35 +54 -39 -15 +99 +61 -74 +76 +64
+49 +10 +18 +64 +91 -69 -88 -84 +14 -70 +42 +62 +21 -89 -73 -74 +13 -35 -79 +35 -39 +22 -36 -36 +92 +71 +89 -62 +96 +66 +36 -55 -49 +0 -16 -90 -78 +26 -51 -12 +9 +8 -22 +39
-13 -10 +56 -18 -30 +58 -56 -1 -90 -9 -53 -16 +21 -79 -99 -30 +5 +58 +22 +10 +24 +61 +71 +61 -63 -16 -38 +25 +73 +22 -66 +91 -40 -8 -86 -68 -99 -62 -15 -12 +64 +2 -35 +82
-39 -13 +41 +66 +42 -96 +85 +54 +57 -63 -38 +69 -25 -63 -37 +87 +20 +76 -9 +45 +23 -95 +43 -62 -29 +40 -34 -85 +4 +44 +2 +47 +18 -91 +80 +48 +98 -95 -3 -86 -56 +39 -82 +55
+43 +67 -41 +95 +71 +75 +55 -84 -86 -42 -54 +24 +53 -64 -75 +63 -27 -57 -56 -58 +32 +24 +29 +45 -87 -31 +90 -45 -30 +55 -46 +98 -15 +98 +93 -60 +67 +73 -37 -53 +1 -24 -73 -54
+20 -50 -88 +87 +32 +48 -82 -61 -25 -63 -51 -6 -4 -62 +23 -46 -46 +55 -57 +14 -38 +58 -7 -8 +62 +43 +87 +88 +63 -27 -36 -22 -23 -26 -52 +74 -58 +58 +51 -51 +96 -12 +44 -94
-52 -21 +11 -39 +42 +45 -31 -60 -17 +84 +53 +66 +37 +51 +57 +58 +68 -62 -23 +28 +36 -73 +69 +33 +54 -43 +37 -71 +46 +54 -9 +48 -67 -76 +35 +79 +5 -11 -5 -59 -35 -88 +31 +79
+81 +100 +18 +39 -52 +77 -18 -33 +32 -91 -40 -28 -49 +10 +43 -67 +54 +35 +91 -30 -42 +21 +23 +29 +59 +27 -13 -50 -55 -35 -77 -20 -94 +21 +0 -38 +35 +50 +46 +39 +59 +90 +45 +95
-88 +100 -69 +41 +36 +13 -58 +68 +9 +67 -58 +18 -5 -18 +59 -43 +46 -42 -57 +71 -29 +25 -38 +34 -22 -32 +68 +5 +94 -87 -61 +61 +7 +55 -56 -21 -22 -29 -46 +78 -39 -24 -74 +97
+57 +47 +96 +61 -19 -79 -98 -17 -52 +54 +36 +65 +97 +9 -68 -59 -81 -84 -90 -13 +62 -47 +11 -99 -55 -17 +2 -19 +56 +89 -10 -37 -27 +47 -53 -13 +34 -97 -18 -89 -67 +68 -22 -43
+28 -35 +45 +76 +23 +83 +4 -2 -55 +22 -53 -74 -14 -14 -22 +78 -75 +64 -66 +76 -71 -73 -38 -4 +66 -80 -59 +9 +30 +50 -52 +30 -49 +70 -91 -66 -99 -40 -74 +45 -33 +68 -29 -5
+9 +97 -85 +43 +85 -75 +56 -37 +39 -83 -48 -20 -84 -93 +1 -65 -71 +11 +99 -42 -51 -69 +32 -91 -53 -36 -92 -68 +24 +69 -17 +2 +10 +5 +1 +89 -93 -39 +59 -72 +99 +59 -20 +100
-93 +35 +68 +3 -38 -7 +92 -20 +22 -1 +42 +9 +12 +66 +4 +33 +57 +72 -57 +22 +78 -14 +60 +90 -11 -82 +62 -43 +70 +89 +0 +21 +91 -31 +80 +22 -6 +0 -6 +13 -26 -77 +78 +6
+87 +35 -42 +59 +57 -32 +75 +11 +64 -98 +100 -76 -5 -5 +85 +7 +72 -59 -27 -86 -8 -80 -65 -24 -92 -47 -62 +2 +23 +37 +67 -61 -98 +64 -10 -50 -52 +13 -73 +91 -21 -27 -68 +41
-25 +93 -87 -46 +13 -10 -14 -35 -5 +65 -42 +87 +62 +80 +66 -91 +52 -55 +95 -33 +22 +81 -83 +73 +43 +54 +49 +65 +82 -51 +19 +81 -21 +99 +2 -24 -38 -53 -2 +45 +84 +45 -98 +84
+57 +80 -73 +45 -36 +76 +54 -92 -96 +86 -47 -56 +33 -27 +98 -18 -25 +8 +87 -34 +47 +5 -39 -81 +0 -67 -2 -79 +90 +22 +7 +20 +36 -62 +92 +56 +35 +37 -56 -83 +74 +75 +27 -81
+69 -73 -17 +4 +30 -71 -2 +14 +87 -3 +21 +51 +29 +4 +6 -81 -19 -39 -78 -12 -69 +22 -41 -23 -86 -35 -19 +80 -61 -16 +90 -35 -12 -58 +42 -8 -14 +0 +79 +86 +57 -25 -25 -59
-35 +30 +87 -97 +81 +88 -51 +74 +37 -19 -75 -91 -23 +72 -2 +85 -37 +3 -80 -9 -47 -70 +18 -59 +40 -41 +5 +8 -58 +27 +94 -41 +36 -17 -30 +0 -76 +2 +58 +82 +49 -80 +20 +86
-6 -13 -14 -80 +83 +70 -42 +64 -50 -31 -2 +45 -100 -68 +24 -71 -13 +91 +9 +46 +66 -93 +2 -71 -23 -100 -12 -21 +17 +91 +49 +48 -33 -100 +72 -100 -84 -86 +93 +65 +46 +59 +0 -87
-62 -85 +71 -67 -30 -43 -32 -28 -39 -32 +36 -79 -12 +47 -61 +6 -60 -92 +44 -40 +7 +34 +99 +59 -96 +26 -8 -68 +60 +91 +18 +39 +28 +7 +33 +33 +77 -77 -5 +12 +66 +99 -71 +32
+22 +38 +16 +31 -14 +90 +92 -72 -96 -13 +4 +28 -72 -59 +96 -56 +8 -16 +94 -72 -84 +61 +11 +39 -37 -100 +6 -57 +30 +45 +50 -60 -62 +32 -46 -97 +0 +25 -100 -4 -40 +36 +25 -19
+31 +45 -11 -51 -86 -36 +55 +11 +91 -10 +15 -94 -52 +73 +100 -75 +61 +67 -66 +100 -19 -14 -9 -31 -75 +38 +71 +100 +51 +10 +43 +88 -6 +53 +79 +25 +54 +84 +66 +80 -20 +22 -20 +72
-32 +36 +12 -18 +41 -4 -87 -24 -22 -32 -53 +33 -17 +46 -58 +90 -65 +15 +89 -49 +59 +77 -70 +56 +70 +24 +51 +3 -26 +82 -91 +15 +63 +5 -67 +56 -96 -42 +67 +24 -56 -18 +71 +75
+36 -34 +60 +91 +57 -24 +61 +100 -80 +46 -4 -99 +78 -20 -76 +9 -71 +29 -8 +43 -89 -94 -32 -90 +10 -29 +44 -80 -9 +74 +94 -4 +67 -10 -1 -32 -65 +49 -21 +79 -56 -80 -17 +53
+78 -67 -75 -48 -86 +37 -31 +82 -65 -81 -30 -69 -69 -1 -2 +53 -41 -74 -94 +89 +99 +34 +25 +74 +2 +15 +12 +11 +12 -47 +45 -65 -5 +11 -81 -78 -7 -65 -64 -71 -41 -60 -70 -69
-15 +13 +22 -91 -41 -81 +11 -14 +41 -50 +34 +94 +16 +69 -69 -67 +58 -88 +66 -76 -96 -2 -86 -81 +85 +76 +15 +30 +63 -1 +55 +72 -75 +90 +4 -61 -94 +40 +32 -15 -24 +10 +74 +50
-20 -23 -91 +85 +95 +64 +43 -58 -69 +96 +17 +96 -97 -68 +94 -68 -42 -57 +1 -59 +93 +62 +12 +62 -84 -100 +76 +63 -40 +1 -41 -76 -29 -20 +7 +90 -34 -7 +36 -80 +6 +91 -11 -85
+84 -51 +91 -72 +80 -29 +87 +39 +83 +72 +9 +98 +52 -27 +16 -63 +97 -93 -49 +45 +67 +82 +80 +81 -57 +23 -35 +87 +39 +45 -96 +17 -45 -36 +17 +67 +76 +17 -90 +2 +93 +33 -71 -15
+21 -46 -75 +47 -100 -9 -52 +30 +56 +65 -87 +88 -46 +93 +82 +42 -40 -78 +51 +26 -52 -32 -95 -84 +43 +50 -58 -2 +16 -62 +90 +11 +16 +58 +91 -52 -13 +92 +84 -30 -48 -92 +47 +41
+17 -84 -26 +66 -48 -28 -16 +63 +42 -87 -25 +86 -3 -93 +42 +23 +81 +91 +32 -54 +47 -19 +2 +85 -25 -49 -40 +27 -22 -3 -72 -34 +79 +72 +53 +31 -41 -95 -98 +43 +78 +6 -96 -6
-76 -59 -20 +33 -65 -83 +100 -47 +20 +75 -30 +74 +11 -39 +49 +32 -27 +29 +47 +67 +72 -36 +11 +44 +46 +14 +22 -42 +43 -77 +56 +64 +26 -12 -65 -72 +5 -79 -94 -100 -33 +26 -80 -38
--- BASE SOLUTION ---
[-19, 67, 97, 32, -13, -44, -82, -79, -1, 76, -93, -30, -4, 20, -73, -30, 20, -57, -57, 28, -42, 25, 11, -4, -53, -82, -62, 65, 90, -16, 94, 48, 28, 32, 79, 56, -65, -65, 32, -80, 93, -92, -96, -38]
[90, 33, 28, 94, 23, -45, 36, -77, -14, 90, 13, 66, -15, 50, 66, 73, -85, 90, 43, 54, 29, -38, -47, -71, -42, -57, -59, 52, -18, 6, 72, -100, -79, 4, -10, -22, 100, -31, -81, 95, -72, -75, -84, -76]
--- MY SOLUTION ---
[-19, 67, 97, 32, -13, -44, -82, -79, -1, 76, -93, -30, -4, 20, -73, -30, 20, -57, -57, 28, -42, 25, 11, -4, -53, -82, -62, 65, 90, -16, 94, 48, 28, 32, 79, 56, -65, -65, 32, -80, 93, -92, -96, -38]
[90, 33, 28, 94, 23, -45, 36, -77, -14, 90, 13, 66, -15, 50, 66, 73, -85, 90, 43, 54, 29, -38, -47, -71, -42, -57, -59, 52, -18, 6, 72, -100, -79, 4, -10, -22, 100, -31, -81, 95, -72, -75, -84, -76]
293 == 293
Worked.
TEST CASE: 45
----------------------------------------
45
-71 -81 +90 +69 +15 -85 -63 -94 +77 +84 -1 -32 +34 -54 -26 -66 +50 -19 -15 +75 +63 +10 -62 -27 +94 -97 -38 -96 -96 -15 -28 -46 -12 -41 +78 -31 +80 +66 -47 +43 +5 -32 -71 +78 +67
-10 -9 +62 +74 +54 -98 +74 +63 -53 +68 -95 +52 -13 +86 +28 +87 -61 +93 +59 +21 -94 -73 -58 +100 -21 -76 -21 +2 +50 +37 -55 +64 +8 +76 +7 -67 +61 -29 +77 +1 -91 -49 +99 -2 +12
+86 +83 +46 +31 +46 +43 +29 +85 +1 +73 +53 -16 +94 +32 +64 +63 +10 -67 +89 -12 -21 -16 -6 +19 -97 -70 -66 +71 -42 -51 +33 -25 +93 -80 +82 -97 -96 +34 -26 +76 -69 -68 -97 -79 -60
+49 -10 -45 +0 +30 +59 +7 -67 +20 -88 +87 -76 -19 -3 -96 +73 +46 +50 -27 +72 +5 -26 +73 -92 -14 +41 -80 -5 +35 +17 +57 +58 -71 -33 +78 +9 -22 -43 +25 +90 +15 -4 -78 -6 +87
-19 -91 -22 +23 +89 -54 -10 -10 +89 -6 +91 +68 -43 -86 +3 +23 +16 +65 +11 +8 -14 -56 +91 +26 -46 -91 +98 +3 +96 +96 -2 -40 +38 +20 +25 -97 +82 -67 +42 -77 -38 +6 +45 -99 -94
-51 +66 -68 -54 +89 +12 +83 +90 -85 +58 +28 +31 +98 -19 -46 +10 -36 -99 -68 -31 +47 +40 +80 -41 -18 +3 +34 +86 +6 +31 -28 +7 +95 -62 -59 -13 -100 +40 +4 -41 +83 +97 -58 +67 -81
+50 +21 +52 +38 +42 +85 -95 -67 -11 +22 -5 -70 -43 +18 -96 -9 -49 +46 -5 -41 +38 +59 -97 +70 -39 -15 -83 -41 +62 +34 +81 -86 +91 -5 -52 +99 -67 +54 -56 +38 +95 +68 +50 +97 -69
-60 +50 +4 -49 -28 +56 +12 +90 +41 -70 -66 +65 -92 -28 -96 -81 -42 -95 -27 +95 -19 +100 -72 +45 +22 +41 -22 -33 +37 +7 -16 -31 -81 +73 +53 -82 +12 +58 +52 -5 +18 +62 -96 -26 +65
+65 -83 +38 -40 +82 -75 +28 +89 -30 +78 -74 +88 -58 -16 -7 +45 +0 -27 -93 -34 -92 -63 -74 -97 +3 -78 -2 +1 -64 -100 -28 +79 -66 -95 -86 +97 +17 +78 -47 +74 -29 +76 -34 +48 -82
-41 -69 -14 +65 +94 +45 -86 -60 +37 -94 -79 -44 +94 +30 +14 -42 -82 +63 +18 -93 +28 -12 +12 -65 -100 -35 +76 -23 -30 +75 -70 +45 +83 -6 -61 +14 +33 +30 +0 -7 +79 -42 -22 +43 +79
-40 -50 -53 -29 +71 +61 +97 -16 -80 -83 +43 +18 +85 +62 +73 -87 +23 -8 +71 -85 +23 -42 +3 +62 +17 -10 +59 +0 +6 -96 +85 -84 +29 +24 -55 -25 -11 +90 -36 -99 -57 -84 +32 +95 -69
+14 +77 -55 -68 -36 -81 +82 -72 -5 +22 -20 +33 -99 -54 -78 +26 -37 +33 +15 -45 +35 -77 -4 +15 -74 -85 +81 -51 -32 +52 -48 -11 -25 +6 +39 +88 +47 +12 +44 +92 -90 -43 -28 +71 -99
-85 -30 +92 -25 +80 -37 -65 +46 +39 +47 +42 -14 -42 +4 -44 +99 -44 +95 -26 -40 -35 -91 -61 +44 -25 -5 -76 +93 -7 +15 -77 +93 +17 -59 -36 -9 -45 +22 -60 +37 -71 -2 +37 -25 +25
+13 +33 +44 -13 -70 -1 +80 -84 +95 +79 +7 +85 +50 +91 +85 -32 -33 -26 -94 +63 +69 +8 +26 +12 -27 -91 -12 -95 +5 -83 -85 -24 +34 -23 -83 +6 -39 -6 -73 +21 +54 -74 -35 +52 -90
+49 +77 +7 +93 -85 +18 -31 -17 +76 -52 -39 +25 +18 -73 +6 -87 +81 +95 +49 -10 +45 -17 -35 +79 -21 -63 +26 -97 +76 +59 +69 -65 -8 +65 +0 -96 -98 -4 -35 -94 -62 -64 -71 +9 +49
+22 +51 +61 +14 -45 +49 +83 +56 +38 +97 +46 -51 -10 -87 +16 -53 +14 +1 -32 -9 -23 -99 +17 +20 -14 +80 -1 +31 +92 +43 -66 +6 +11 -65 -26 +55 +30 +78 +37 -47 -86 -4 -68 -51 +20
+54 +16 +17 -23 +27 +44 -28 +30 -18 +47 +4 -25 +1 +27 +29 -82 +21 +61 -26 +21 +81 +9 +28 -28 +91 -51 -83 +45 +25 -60 +25 +86 -16 +9 -85 +33 -34 -91 +67 -30 -69 -67 -51 -85 -1
+75 +92 -10 +63 -100 +26 +46 +74 -74 +23 -58 -100 +69 -69 -38 +50 -57 +17 -17 +99 +44 +6 -13 +63 +37 +37 -78 +64 +33 +6 +63 +19 -70 -74 -20 +36 +7 -19 -49 +18 +52 +9 -18 +96 +79
-56 +4 -100 -79 +16 -32 +97 +94 -25 -67 -87 -87 -35 +69 -75 -87 -85 +97 -51 +9 -85 +14 +0 -1 -98 -13 -60 -63 -16 +57 +45 +31 +47 +66 +75 +7 +96 +87 +23 +62 +19 +36 +4 -87 +50
+66 -76 -58 -1 +94 -81 -14 -47 +7 +76 -77 -96 -67 -86 +48 +27 -72 +12 +58 -97 -56 -81 +21 +93 -9 +81 +79 +59 +70 +87 +58 -11 -98 +91 -46 -63 -10 +28 +9 +19 -87 -62 +36 +2 +100
-2 -10 -55 +6 +84 +51 +43 +52 -90 -99 +21 +51 -66 +8 -28 +21 -49 +90 +26 +65 -81 +53 +72 -43 -39 +68 -39 +81 -63 +59 -47 +71 -64 -19 -76 -26 -17 +73 -24 -56 +17 -63 +54 +15 +6
-75 +53 +99 +100 +70 +11 -88 -74 +39 +67 -43 -28 -13 -53 +41 +52 +65 -3 +91 +33 +76 -55 +58 +81 +48 -40 +61 +9 +34 -82 +72 -89 -36 +40 -92 -97 -12 -30 -86 -13 +33 +34 +78 -97 +57
-43 -14 +34 -85 +69 -43 -35 +5 +80 -20 -41 -6 -79 +96 +88 -19 -80 -40 -32 -37 -22 +93 -37 +72 -96 -55 +65 +100 -70 +12 +74 -67 +78 +98 -10 -46 -45 +73 +81 -3 -45 -65 +74 +64 -33
-68 -64 -77 -37 +3 +20 +88 +97 +96 -38 +42 +55 -30 +91 +79 -80 -17 +16 -11 -13 +1 +77 -88 +24 -47 -92 +83 -29 +25 +15 +77 +17 +21 -1 +46 +94 -44 -34 +56 -89 +77 +35 -73 -20 +41
+29 +58 -71 -51 +55 +98 -81 -64 -63 -89 -67 -88 -24 +9 +64 -79 +80 -44 -27 +54 +66 +93 +15 +1 +19 +61 -34 +12 +70 -85 -76 -62 -73 -67 -49 -90 -7 -76 -88 +36 +41 +0 +19 -37 -25
-57 -57 +76 -26 -85 +64 +53 -90 -51 -95 -69 +33 -60 -72 +69 -55 -13 +19 +44 -58 +6 -55 +76 +13 +43 +15 +47 -43 -93 +91 +20 -4 +90 -69 +16 -33 +21 +36 +16 +86 +67 -92 -60 -97 -18
-90 -59 +42 -74 -47 +32 -51 +49 +64 +13 +57 +12 -51 -42 +45 +98 +38 +32 -57 -60 +10 +13 -10 -42 -81 +64 -58 -14 +57 -39 +32 -16 -8 -33 +32 -41 +55 +5 +77 -82 +24 -58 -77 +48 +46
-55 -86 +40 +45 -29 -54 -96 -83 -34 +52 -46 -71 -8 +19 +51 -64 -65 -13 +30 -97 +0 +65 -50 -29 +79 +31 +59 -61 -78 -6 -24 +99 +13 +86 -22 +65 +4 -81 +16 -55 +10 -32 +17 -53 -81
-63 +61 -60 +2 +55 -46 +53 -29 +66 +26 -22 -15 +23 -95 +25 +42 -99 -74 +43 -68 +44 -24 -9 -18 +93 -36 +56 -52 -48 -81 +34 +72 +71 +80 -48 -8 +3 +2 -20 -65 +27 +58 -6 -71 -1
-8 -42 +65 -100 +43 +48 +100 +34 +12 -63 -10 -53 +88 -5 +41 -2 +27 +52 -23 -89 +53 -19 +76 -5 -97 -2 -1 +50 +18 +68 +60 -30 +23 -92 +38 -34 +95 -36 +40 +4 -82 -21 +21 -5 -38
+31 -88 -76 -40 +30 +49 -82 +88 -33 +59 -27 -17 +100 +13 +32 -91 -42 +19 -3 -89 -37 +18 -53 +53 -61 -72 +44 -26 -37 -53 +31 +89 -48 -53 +96 +95 +82 +97 +23 +35 -8 +79 -62 -41 -48
-18 +19 -62 -32 +80 -30 -51 +85 +70 +51 -81 +51 +81 +9 -44 +95 -64 +80 +91 -3 -38 +34 -95 +48 +96 +34 -50 -90 +59 -34 +90 -91 +66 +3 -34 +72 +88 +59 +21 +26 -37 +73 +83 +31 -48
-7 -9 +66 -61 +48 -5 +99 +71 +20 +8 -56 +20 +57 +4 -98 +24 +35 -88 +55 +2 -46 -75 +99 -79 -45 -87 +51 +27 -96 +72 +77 -22 -16 -4 -20 +40 +78 +25 -72 +18 +90 +22 +60 -27 -89
-10 -29 -65 +4 +1 +30 -15 +73 -47 +63 -4 +20 -89 -43 -99 -73 +60 -2 +80 -85 -100 +86 +76 -63 +26 -14 +96 +35 -74 -71 +29 -96 +69 +28 -12 +1 -96 +97 -3 -83 +79 -56 -50 +47 +34
+80 -98 -58 +6 -80 -80 -20 -28 +79 +51 -51 +97 +39 -8 -47 +45 +15 -24 +2 +70 +25 +68 +93 -66 -26 -18 -63 +47 -5 -17 -4 -39 -4 -71 +17 +21 -24 -65 -92 -75 -77 +40 -75 -48 -65
-79 +59 +91 -37 +80 -31 +65 +98 +93 +36 +17 -3 -4 +88 +38 -27 -49 +3 -78 +68 +57 -1 +71 +97 +85 -41 +77 -98 +59 -23 -88 +51 +8 +74 +48 -62 +59 -2 +27 -47 -7 +28 -9 -57 -98
-46 -61 -25 -21 +61 +36 +87 +41 -85 -65 +86 +14 -36 -57 -15 -100 +100 +16 -32 +82 -44 +1 +55 +39 -99 +72 -2 +14 -57 +17 +66 +14 -19 -19 +40 +32 -60 -91 -72 +75 +93 +76 +54 -95 +55
+18 -51 -81 +66 +87 -6 +95 -29 +94 +64 +99 +80 -31 -51 -70 +23 -80 -83 +2 -80 -43 +73 -78 +55 -36 +47 -22 -71 +76 +73 -38 -69 +84 -75 +38 +10 -14 +47 -37 +68 +88 -8 -30 +67 -94
-40 -85 -48 +27 -91 -97 -91 -9 +73 -87 +67 -84 +11 -91 +60 +24 +30 +69 -41 -29 -75 +47 +53 +77 +8 -82 +4 +23 +85 -54 +52 -59 +99 -76 +79 +98 -85 -41 +12 -71 +16 -43 -16 -3 -59
+74 +48 +4 -90 -48 +66 -46 -58 -58 -63 -93 -75 -62 +26 -36 +40 -6 -24 +75 +12 -3 -94 +46 +75 +82 +38 -39 -53 -4 +35 -25 +74 -96 +65 -35 -62 +64 -68 +51 -45 +38 -41 +58 -76 +87
-89 +71 +2 +45 +52 +56 +12 -55 +67 -99 -59 +30 -73 -43 -25 -71 +84 -82 -8 +66 +96 -3 -90 +68 -94 -51 -4 -95 -28 +18 -56 -19 +18 +17 -6 -11 +36 -21 -50 +78 +5 +26 -44 -38 -28
+17 +21 +76 +79 +36 -26 -45 -17 -32 -26 +74 -6 -90 +87 +80 +26 -21 +69 -29 -17 -54 -85 -55 -18 -21 +2 +54 -26 -46 +9 +8 -28 +33 -52 -73 +1 +83 -13 -99 -75 +73 -54 +54 +43 -75
+22 -17 +9 +86 +46 +61 -50 +83 +48 -27 -80 -8 -81 +22 +92 -61 +24 -31 -77 -94 +13 +1 +26 -36 -87 +97 +71 -5 -12 +64 +28 +2 -47 +80 -41 -5 -95 -35 -6 +37 -25 +47 +85 +52 +92
+4 +47 +33 -35 +52 +90 -60 -7 +97 +53 -78 +97 -68 -46 +27 -6 -61 +72 -22 +34 -65 -15 -92 +1 -61 -86 +37 +70 -94 -87 +47 +73 +12 +86 +60 +54 +14 -45 -95 +9 +37 +57 -79 +6 +7
+7 +43 -18 +28 -19 +44 -28 +36 -38 +95 +51 +26 +67 -48 +80 -1 -60 +26 +25 +17 -54 +73 +53 -74 +43 -72 -36 -91 -98 +9 +40 +56 +80 -46 -63 +55 +61 +91 -94 -7 -90 +72 +71 -85 +28
--- BASE SOLUTION ---
[-71, -9, 46, 0, 89, 12, -95, 90, -30, -94, 43, 33, -42, 91, 6, -53, 21, 17, -51, -97, -81, -55, -37, 24, 19, 15, -58, -61, -48, 68, 31, -91, -16, 28, 17, -62, -60, 47, 12, -45, 5, -54, 85, 6, 28]
[67, -2, -97, -4, -38, -41, -56, 58, 17, 14, -55, 6, 17, -24, 69, 43, 25, 64, -60, 81, -39, 81, -37, 77, 66, -58, -57, -13, -99, -2, 32, 9, 57, 20, -51, 36, -85, -29, -91, 66, 52, 79, 9, 47, 7]
--- MY SOLUTION ---
[-71, -9, 46, 0, 89, 12, -95, 90, -30, -94, 43, 33, -42, 91, 6, -53, 21, 17, -51, -97, -81, -55, -37, 24, 19, 15, -58, -61, -48, 68, 31, -91, -16, 28, 17, -62, -60, 47, 12, -45, 5, -54, 85, 6, 28]
[67, -2, -97, -4, -38, -41, -56, 58, 17, 14, -55, 6, 17, -24, 69, 43, 25, 64, -60, 81, -39, 81, -37, 77, 66, -58, -57, -13, -99, -2, 32, 9, 57, 20, -51, 36, -85, -29, -91, 66, 52, 79, 9, 47, 7]
538 == 538
Worked.
TEST CASE: 46
----------------------------------------
46
-44 -13 -4 +58 +68 -54 -24 -93 +46 +89 +92 +14 +19 -50 -26 +39 -28 -75 +16 -52 -50 +13 -53 +27 -65 +43 -90 +77 -44 -63 +18 +45 -65 +98 -19 +65 +46 +60 -19 +86 -4 -60 +16 +13 +90 +6
+5 +53 +5 -80 -98 -86 +56 +69 -33 +15 +43 -82 +25 +51 +88 -95 +58 -83 +14 -78 +17 -97 +6 -63 -76 +51 -45 -56 +26 +0 -41 +40 +50 -27 +84 -80 +16 +99 -82 +55 -85 +53 -69 +91 +43 -24
-34 +39 +64 +18 -61 +30 -14 -47 -22 +8 +8 -84 +72 -78 -71 -11 -11 -31 +21 -95 +100 -32 -8 +82 +50 -78 -46 +36 +28 -34 -82 +49 -86 +81 +24 +50 +32 -94 -55 +33 -81 +15 -39 -1 -24 -41
+26 -41 -52 -38 +13 +3 -58 +29 -28 -93 +31 +82 -53 +31 +42 -86 -20 +7 -47 -47 -5 -55 +75 -82 -87 -99 -6 -94 -3 +22 +74 -34 -7 +51 -87 +88 +2 -61 +75 -18 +4 -56 -94 -96 -46 -55
-13 +39 -16 +76 -4 -52 +16 +57 +81 -58 +88 +62 +71 -84 -89 -65 +0 +39 -62 -76 +87 +9 +93 -99 -68 -35 -98 -45 +24 -36 +20 -94 +40 +75 -69 -78 +56 +51 +76 -71 -39 +67 -43 +37 +35 -75
-47 +32 -62 +72 -4 -87 +78 +95 +91 -91 -47 -12 +87 +20 +27 +100 +33 +38 +46 -80 -62 +20 +73 +57 -1 -37 -18 -29 -87 +92 +5 +77 +16 -69 -90 -61 -25 -2 +51 -54 +22 -10 +62 -20 +83 +95
-45 -23 -6 -86 +72 -10 -63 +78 -49 -94 +78 -88 +23 +1 -84 +86 +10 +90 +47 +24 +39 +45 -50 +20 -69 -10 +92 +50 -73 +58 -42 +45 -78 -14 -20 +50 +55 -11 +34 +54 -26 -60 -62 +83 +21 +63
+15 -90 +58 +95 +35 -49 +53 +62 +85 +94 -9 +11 +11 -75 +77 +46 -64 -76 -4 -43 -5 +58 -62 -63 +37 +49 -38 +5 -32 -1 +6 -53 -6 -59 -10 -42 +86 -25 +71 +99 -4 -97 -89 +52 -61 +86
-44 -67 +80 -23 -14 +33 -49 -50 +55 -44 -84 -86 -36 -75 +56 +43 +30 +90 +45 -27 +42 +68 +80 +77 -56 -25 +56 +48 +11 -48 +26 -63 -42 +48 -95 -89 -74 -90 -43 -82 +76 +43 +29 +3 +31 -40
+65 +85 +6 -75 +96 -44 +19 +42 -18 +26 -41 -7 -83 -88 +4 +52 -20 -5 -18 +97 +6 -52 +93 -92 +12 -78 -84 -5 +76 +5 +10 -25 -31 +32 -74 -71 -9 +44 +74 -63 -29 -10 +57 -19 -97 -41
+70 +64 -59 -90 -59 +60 +40 +32 -70 +12 -2 +99 +42 -22 -89 -31 +84 -41 -35 -91 -85 +29 -10 -10 +98 +35 +49 +75 -1 -52 -53 -90 +90 -46 +6 +77 +87 +100 +13 -13 +29 -89 +87 -58 +25 +26
-44 +75 +16 -15 +40 -69 -77 +19 -66 +75 -65 -10 -50 -86 +23 -38 -91 +97 +74 +40 +22 +1 +36 +95 -73 -75 -94 -34 +52 -24 +60 -34 +5 -37 -71 -85 +31 +32 +18 -12 +32 +81 +6 +82 +55 -3
-56 +7 +82 -39 -78 +54 -100 -67 -39 +13 +46 +16 -89 -7 +10 +76 -38 +38 -93 +8 +28 +9 +37 +54 +51 +67 +91 -98 +74 +27 -43 +4 -19 +70 +100 -51 -70 +21 -43 +74 +81 +25 +90 -14 -39 +4
-1 +87 +40 +81 -49 +10 +59 -14 +21 -77 +53 -72 +49 +21 -46 +40 +92 +59 +4 +33 +60 -33 +3 +10 +81 -14 +75 +94 +48 +81 -13 -39 +39 -40 -57 +73 +59 -98 +98 -6 +5 -77 +45 +66 +39 -48
-53 -40 +73 +73 +31 +22 +6 +83 -86 +96 +65 -19 -96 +99 -68 +61 -41 +97 +63 -46 -58 +41 -71 -97 +51 +83 +57 +10 +59 -27 -96 +64 +17 -36 -70 +70 +80 -98 +35 -41 +18 -57 -64 -43 +9 -6
+98 -94 +100 +54 -96 -34 -33 +77 +25 +92 -34 +12 +7 +34 -78 -24 -78 -36 +97 -52 -84 -100 +71 -56 +14 +4 -4 -42 +69 +96 -91 +25 -22 -91 +45 -83 +5 +58 +69 +34 -77 -7 -2 -2 +29 +5
-7 +86 -27 -18 -20 -76 -84 -17 -29 -98 +41 -34 -86 -16 -69 -87 -66 -34 -22 +79 +31 +4 +43 +66 -80 -93 +36 +50 +3 -34 +3 +12 -1 -16 -58 -9 +55 -51 +27 +67 +0 -46 +11 +98 +22 +47
+78 +32 +96 -13 -37 -16 +48 -33 +14 +42 +74 -28 +94 +91 -36 -22 +63 +8 -52 -100 -21 +11 +34 +47 -22 +16 -14 -35 -14 +13 -62 +53 -16 +49 +94 -45 +55 -98 +41 +97 +15 -10 +21 +18 -45 -24
-62 +50 -10 +35 -59 +5 -99 +40 -26 +5 +91 -28 +76 -71 +57 -32 +40 -12 +71 -3 -92 +53 +86 +61 -2 +35 -18 +64 -78 +25 +61 -15 -92 -62 -21 -56 +83 +92 -65 +34 -62 -82 +26 +65 -49 -77
-87 -93 +88 -3 +15 -75 +32 +1 -95 -82 -62 +13 +16 -82 -100 -18 -14 -6 +3 -84 +13 -15 +47 +95 +40 +86 -86 -28 -12 +26 -59 +21 -81 +48 -57 +54 -26 -52 -94 +84 +55 -23 -3 +74 +40 +65
+38 -59 -97 +52 -50 -51 -18 +47 +54 +92 -13 -37 -75 -19 -49 -61 +76 +74 -37 -11 -59 -69 -33 +11 +74 -86 -44 -86 +63 -68 +45 +13 -62 -34 +57 -44 +39 -65 -70 -33 -22 -94 -99 +71 +10 -70
+79 -91 +84 +30 -51 +31 -89 +87 +34 -85 -36 +29 -75 +67 -25 -23 -60 -5 +86 -25 +94 +14 -77 -26 +80 +87 +32 -33 -70 +19 +8 -15 -10 -64 -23 +54 +90 -67 +92 +95 -45 +44 +77 -78 -29 -66
+26 +75 +61 +84 -79 -45 +32 -40 -77 +21 -74 -93 -97 -14 +49 -61 +85 -72 -1 -28 +44 -5 +33 +99 +55 -64 -62 +47 +83 -59 -1 -74 +58 -42 +67 -48 -70 -46 +0 -49 +43 +70 +72 -42 +88 +89
-87 -93 +57 +63 +47 +67 -56 +8 -40 -5 -94 -11 +1 -4 -98 +81 -61 +90 +48 -9 +84 -82 -25 +14 +51 +20 +7 -90 -27 -12 -2 +21 -47 -57 -27 -44 -87 +95 +69 +52 -79 -3 +83 -77 +87 -94
+68 +94 +32 -47 +11 -79 +37 +84 -34 +20 +19 +50 +82 -72 -55 +87 +94 -47 -63 +90 -7 -77 -72 -22 +96 -63 -76 -66 -7 +54 -73 +95 +55 -81 +60 -16 -43 +66 -67 -79 +43 +67 +91 -39 -57 +36
+39 +96 -91 +98 +56 -82 -81 +14 -58 +73 -49 -26 -20 +49 +31 +72 +94 +20 +15 +95 -89 -22 +34 +92 +60 +16 -70 -96 -14 -16 +89 -66 -30 +16 +77 -94 +29 -12 +30 -9 +86 +31 +93 -94 -39 -25
-49 +29 -13 -97 +57 -22 +56 +31 +84 -77 +90 +84 -49 -77 +60 -98 -97 +8 -23 -61 -67 +65 -47 -33 +63 -67 -3 -22 -78 +33 -24 -67 -28 +10 +99 +18 -94 +51 -51 -89 -88 -52 -33 +1 +82 +79
-10 +3 -38 +12 +19 -93 +94 -55 -84 -29 -14 -94 -64 -59 +37 -74 -92 -24 -67 +23 +16 +63 -33 +47 -46 +35 +92 -84 -60 +42 -30 -53 -60 +6 +81 +48 -12 -6 -86 +11 -25 -41 -36 -87 -54 -64
+92 -48 -61 +76 +59 +68 -11 +16 +49 +83 +30 +1 -49 -97 -5 -62 +15 +19 -63 +44 -8 +41 -16 +81 +82 -65 -37 +0 -85 +46 -12 +21 +42 -43 +61 -66 -27 -2 -41 +83 -2 +41 -17 -65 +0 -18
+54 -76 -71 +59 -52 -51 +71 -39 +0 -31 +61 +35 +17 +25 +89 -31 +55 +66 +48 -44 +5 -100 -7 +30 +7 +31 +58 +1 -12 +50 -52 -67 +37 +41 -53 -28 -91 -63 -79 +30 -62 +96 -33 -25 +9 -7
-75 -36 -94 +12 -29 +70 -59 +33 -75 -75 -53 -84 -54 -97 -93 -9 -66 -26 +0 +0 -67 -69 +98 -92 +39 +85 -19 +47 -66 +62 +68 +17 +78 -87 +70 -91 -20 -80 +65 +35 -32 -47 -7 +3 -33 +69
-67 +34 +57 +75 -84 +65 -64 +61 +65 -35 -83 -59 -99 -14 -30 -71 -16 -68 -96 -22 +43 +16 +60 -89 +76 +82 +28 +83 -37 -5 -97 +78 +1 +73 +74 -55 +100 -83 -99 +53 +10 -97 -21 +14 -19 +48
+98 -21 +81 +60 +25 -38 -33 +18 +87 -8 +8 +34 -11 -65 +65 +21 -91 +52 -68 +91 -26 +56 +26 -34 +43 +29 -25 -30 +6 +27 -92 -63 +26 -97 +18 +71 -47 +5 -52 -80 -89 +20 -19 +10 -87 -41
+46 -86 +85 +16 -31 -47 -11 +71 -77 -59 +11 +39 +85 +73 -54 +60 +58 +81 -93 -80 +34 +87 +32 +88 +54 -74 -95 -5 +100 +13 +65 -25 -1 -45 +68 +51 -64 -93 -87 -3 -51 +74 -17 +85 +39 -58
-15 +3 +33 -12 +73 +32 -31 +22 +98 -17 -18 +49 +14 +88 -14 +28 +89 -96 -80 -92 -66 +7 +69 +41 +26 +26 +16 -63 +65 -62 -79 +16 +40 -70 -74 +59 +7 -21 -52 -57 +71 +35 -95 +73 +51 -3
+61 +37 -36 +60 -30 +64 -92 +27 +68 -7 +60 +59 +44 -37 -31 -48 +6 -32 -65 +49 -87 +11 +33 -4 -52 -75 +0 -29 +30 +38 -30 -46 +98 +18 -60 -84 -32 -88 +61 -7 -74 -70 +25 +63 +95 +12
+19 -95 +89 -91 -99 +79 +41 +81 -8 -80 +87 +79 +39 -7 +37 +16 -11 +27 -81 -56 +82 -40 -84 +47 -61 -70 -80 -3 -18 -11 +47 +58 -28 -79 -6 +55 +91 +75 +92 -88 +58 -35 -48 -17 -72 -23
+37 +5 -72 -85 -71 -10 -93 +14 -14 +49 +2 +69 -30 -14 -47 +20 -65 -9 -20 -35 -10 -80 +7 -11 +29 +86 -29 -42 -61 +48 +1 +55 -78 -73 +1 +80 -91 +88 -86 -14 -4 +7 +13 +99 +3 +17
-4 +52 +6 -78 +7 +85 +19 -85 -10 -94 +23 -80 +51 -23 -89 +9 +78 -13 +35 -83 -2 -22 +19 +5 -90 -82 -40 +74 -43 -42 +14 +36 +84 -56 +24 -27 +21 -18 -93 -25 -62 +73 -26 -100 +63 -87
-34 +93 -54 +34 -96 -10 -26 +6 -12 +19 +16 -78 +79 +85 -97 -74 +26 +22 +10 -15 +10 -88 -81 +79 -69 -52 +21 +86 -24 -89 +43 +40 +9 +74 +47 -94 +18 -44 -92 -81 +76 +99 +37 -100 +15 -14
+91 +66 -51 +99 -68 +97 -11 -52 -37 +79 -7 +56 -3 +92 +4 -4 -31 +79 -7 +39 -58 -81 -28 -24 +19 -42 -8 +44 +81 -57 -20 +51 +34 +44 +62 -9 -61 +0 -6 +61 +58 +14 +11 +46 +5 -28
-22 +94 +32 -65 +1 +100 -27 -73 +84 -20 +42 +70 -49 -87 +94 -75 +71 +95 -74 +75 +86 +66 -55 +59 +28 +67 +84 -15 -65 -55 -53 -87 +53 +68 -72 +0 +19 -17 +56 +75 +89 +37 -94 -32 +59 -91
-30 -59 +76 +87 +59 -17 +9 -63 -7 -85 +22 +100 +57 -2 -35 +75 -23 -39 -16 -31 -89 +93 +18 +4 -19 -28 -57 -12 +27 -93 +10 +9 -7 -37 -86 +3 +87 +22 -45 -49 -16 -2 +88 -60 -90 -55
-29 -53 -33 +80 +49 +35 +83 +50 +36 +98 +74 +2 +36 -13 -8 +34 +96 +10 +69 -38 -57 -11 -75 -59 -84 -65 +93 -65 +25 +5 +48 +63 +41 +57 -76 -47 +74 -5 -31 +7 +41 -21 +5 +97 -60 -70
-23 -78 -95 -9 +19 +57 +60 -22 -95 -54 -93 +5 -52 -9 +33 -90 -6 +28 -51 -4 -46 -78 +63 +8 -33 -6 +100 -28 -81 +46 -72 +32 -19 +23 -80 +83 +39 -88 +64 +33 +37 -38 -22 -3 -68 +18
+79 -38 +85 +48 -9 -52 +32 +70 +94 -51 -68 -68 +23 +63 +43 -38 -65 +4 +47 -55 +27 +5 +50 -76 -48 +100 +0 -20 +43 +76 -45 +2 -53 +48 -41 +5 +89 +23 +53 -36 +17 +95 -3 -10 +98 +35
--- BASE SOLUTION ---
[-44, 53, 64, -38, -4, -87, -63, 62, 55, 26, -2, -10, -89, 21, -68, -24, -66, 8, 71, -84, -59, 14, 33, 14, 96, 16, -3, -84, -85, 50, 68, 78, 26, -45, -74, -84, 91, 88, -93, -81, 58, 37, 88, 97, -68, 35]
[6, 43, -1, -94, 67, 22, 54, 71, -90, -9, 77, -71, 70, 39, 64, -91, -34, -14, 64, -86, -86, 80, 99, -25, -77, -89, -61, -67, 19, 55, -9, -30, -65, 85, 49, 60, -80, -14, -85, -26, 97, 1, 87, -33, -78, 79]
--- MY SOLUTION ---
[-44, 53, 64, -38, -4, -87, -63, 62, 55, 26, -2, -10, -89, 21, -68, -24, -66, 8, 71, -84, -59, 14, 33, 14, 96, 16, -3, -84, -85, 50, 68, 78, 26, -45, -74, -84, 91, 88, -93, -81, 58, 37, 88, 97, -68, 35]
[6, 43, -1, -94, 67, 22, 54, 71, -90, -9, 77, -71, 70, 39, 64, -91, -34, -14, 64, -86, -86, 80, 99, -25, -77, -89, -61, -67, 19, 55, -9, -30, -65, 85, 49, 60, -80, -14, -85, -26, 97, 1, 87, -33, -78, 79]
21 == 21
Worked.
TEST CASE: 47
----------------------------------------
47
+10 -49 +71 +73 -63 +92 +27 +70 +15 -41 +79 -27 -91 +96 -54 -35 +45 -6 +46 +48 -32 +96 +85 +89 -41 -77 +18 -33 +81 +100 -25 +6 +48 -42 -91 +4 +27 +96 -65 +91 -86 +16 -80 -8 -1 +96 +92
-13 -10 +74 -54 -1 +12 +10 -51 -14 +43 +49 -66 +34 +78 +54 +10 -75 +32 -20 +39 +89 -62 -85 +19 +86 -96 -21 +28 -10 +7 -90 +73 +34 -46 +24 -100 +67 -51 +63 +35 +83 -62 -66 +69 +23 -70 +99
+23 -6 -49 +95 -81 -16 +9 -6 -1 +94 +53 -90 +39 -23 -26 +31 -48 -68 +60 +65 +8 +28 -33 +83 -73 +16 +21 -37 -80 +58 +61 -31 +100 -60 +99 -65 -5 +33 -2 +68 -40 -73 +70 -61 -24 +50 +8
+10 -93 +0 -26 +35 -97 -21 +65 +0 -60 +13 -64 -40 +31 +26 +34 +76 -90 +41 +74 +93 +82 +35 -65 +25 -95 -99 +17 -36 -7 +64 -72 -5 +4 -50 +87 -35 -69 +71 -63 -25 +35 +68 -84 +73 +75 -55
-27 +82 +78 +62 -39 +25 -49 -56 +25 -27 +28 -13 +21 -56 +52 -61 -16 -22 -67 +17 +55 -90 -52 +30 +54 +49 -32 -55 +99 +53 -93 +27 +30 -86 -89 +73 -34 +51 -40 -13 -35 +38 -77 +78 +8 +71 +10
-63 +87 +66 +37 +1 +62 +31 -90 +93 +98 -8 +19 +27 +40 +38 -20 +40 +69 -100 +82 -71 -64 -21 -63 +66 -66 +19 -93 +12 +64 -30 -58 +18 -73 +86 +48 -89 -21 -96 -38 -39 -77 +40 +52 +5 +52 +36
-93 -18 -53 -62 -65 -72 -68 +70 +60 -54 -16 +34 +68 -21 +39 -65 +54 -99 -12 -76 -26 -45 -85 -89 +90 +35 -51 +32 -25 +67 +89 +97 +60 -77 +14 +75 -73 -17 +35 -93 +38 -88 -17 -54 -96 +31 +92
-49 +100 +69 -64 -90 -23 +7 -72 -43 -51 -77 +46 +80 -12 +12 +84 -34 +85 -19 -55 +83 -20 -15 +94 +75 +69 +32 -44 +24 +97 -77 +64 -40 -34 -1 +49 +40 -55 -28 -37 +64 +83 -73 -72 -21 +46 -3
-66 -78 -59 -62 +82 -58 +41 -85 -22 -75 +92 -44 +68 +24 -9 +99 +44 +48 +81 -58 +86 -83 +43 +17 -77 -43 -2 -44 -84 +87 -22 +49 -46 +88 +97 +37 +43 +2 -27 +5 +28 -59 +51 -64 -1 -51 -16
-5 -11 -36 -86 +7 +38 -97 -98 -100 -65 -14 -3 +26 -64 -20 -36 +71 +53 +76 -70 -65 -28 -42 +18 -75 -46 -30 +15 -12 +81 +99 -98 +88 -5 -1 -9 +60 -39 -80 +47 +36 +86 +75 +62 +6 +8 +30
+37 +91 -36 +69 -61 +58 -80 +69 +63 -77 -53 -64 +71 -2 -51 +36 -26 -80 -57 -94 +24 +7 +79 +52 -9 -40 +52 -69 +66 +85 +87 +40 +61 +20 +90 -78 -84 -83 -32 -35 -52 +20 -49 +84 +35 -57 -68
-13 +26 +21 +68 +48 +6 -89 +63 +83 +51 +24 +29 +1 -54 -58 +19 +60 -96 +58 +5 -84 +83 +91 +33 +32 -36 +73 -42 +90 -29 +10 +13 -18 +41 +54 +82 -78 +64 +38 +44 -87 -58 -95 -2 -10 -3 -93
+52 -33 -4 -29 -34 +70 +69 -46 +79 -15 +91 -20 +16 -11 +0 +54 +34 -95 -86 +51 +38 +27 +58 +4 -51 -93 +3 -40 +10 -15 -61 +54 +83 -56 -39 -68 -9 -86 +39 -6 -70 +6 +76 +83 -89 -75 -62
-82 +79 +80 -30 -100 +55 +87 -99 +88 -36 -36 -26 +93 -59 +62 -4 -37 +42 -8 -49 -33 -49 +20 +20 +0 -11 -18 +32 +20 -21 -14 +50 -20 +74 +12 -78 +29 -66 -20 -85 +25 -22 -1 -87 -4 +96 -52
+76 +56 +1 -40 -7 +41 -91 -59 +59 -18 -37 +79 +55 +68 -75 -16 -46 -74 -15 -89 -82 +28 -33 -90 -75 -31 +34 -32 +18 +31 +17 +43 +69 +52 -5 +43 +22 -42 -86 -96 +17 +30 +36 -48 +45 -69 -42
+16 +97 -6 +35 -37 -57 -9 -87 +39 +67 +55 -74 -37 -82 -71 -59 +31 -81 -83 -42 -54 +9 -62 -1 -33 -22 -4 +22 -71 +44 +88 +23 -17 -60 +4 +58 +53 -22 +14 -52 +42 -40 -77 -13 +86 -54 -28
+78 +34 +95 +3 -40 -23 -80 +2 +53 +0 -83 -98 +10 -67 +73 +44 +68 -61 +49 -75 -16 -35 +78 -84 +51 +94 +54 -45 -90 +22 +27 -70 +88 -74 -6 +51 +2 -92 -65 +36 +38 +43 +73 +66 -95 +63 +46
+33 -22 -51 -34 -80 +33 +74 +60 +35 +61 -81 -11 -78 +38 +0 -64 +64 +4 -1 -79 -71 -83 +80 +17 +41 +89 +53 +68 -92 -67 -94 +97 -97 +34 +8 +34 +5 +6 +15 -48 -21 -79 -74 -72 +46 -18 -91
-35 -91 +91 -98 -27 -70 -31 +2 +73 +38 -69 +64 +86 +9 +56 -52 -11 +58 +71 +80 -8 -56 +81 +39 -15 -22 -34 -82 +6 -49 -46 +35 -53 -25 -33 -34 -82 -31 -13 -57 -19 +2 -59 -36 +11 +79 +84
-40 +81 -5 -1 +83 -75 +58 -30 +35 -81 +89 -40 -48 +2 -76 -70 +53 +58 +47 +10 -100 +0 -95 -85 +16 +79 +77 -53 +23 -63 -25 +51 -50 +30 -23 +22 +94 +17 -66 -33 -37 -92 -85 +4 -43 -1 -43
+89 -1 +99 -15 +6 +59 +85 +33 -53 -19 -53 +97 -54 +79 -28 +3 +5 -1 -7 +40 -28 -63 +27 +99 -10 +60 -51 -62 -2 -95 +40 +5 -1 +25 -63 -26 +9 -91 -52 +59 -33 +19 -42 +64 +15 -77 -32
+80 -51 +90 -43 +76 -90 +60 +74 +55 -36 +60 -44 +90 +36 +52 +6 +100 -42 -88 -46 +44 -88 -3 -5 -81 -18 -5 -51 -71 +85 +22 -61 +24 -70 +38 -63 -10 -41 +39 +12 +13 -71 +90 -58 -8 -61 +37
+59 +18 -49 -91 -25 +64 -79 +14 -69 +92 +67 +8 +64 +92 -24 -16 +100 +97 +63 +41 -78 +26 -10 +80 -98 -12 +31 -30 +93 -8 +74 +12 -48 +99 +83 +83 +28 +98 -65 +11 -69 -72 -4 +90 +37 -76 +67
+81 +92 -25 -87 +0 +45 -37 +83 +3 +38 +78 -71 +64 +26 +31 -92 +85 -16 -15 -52 -25 -93 +34 +11 -18 +41 -63 +47 -79 -18 +33 +96 +40 -19 -35 -100 +81 -78 +59 +33 -56 -28 +19 +93 -47 -38 +77
+28 -91 +37 +69 -82 +31 +14 -58 -19 -28 -89 -11 +50 +21 +88 +27 -41 -69 +56 +82 +43 -80 -75 +54 -76 +63 +65 +32 -34 +93 -46 +67 -24 +44 -48 +53 -83 +71 -54 +84 +71 +71 +34 +21 -65 -15 -70
+87 +86 -82 +56 +53 +0 -26 +3 -8 -98 +18 -49 -24 +40 +28 +63 -7 -48 -43 -44 +43 +17 +37 -76 +99 +43 +79 -12 -53 +27 -31 -85 +99 +2 +97 +59 -93 +11 +28 -45 -14 -16 -44 +12 -100 -8 -70
-89 -35 +35 +34 -83 +6 -2 -68 +23 +89 -97 +96 +65 +25 +22 -13 -86 +67 +40 +88 -6 -17 +76 +14 +29 -45 -34 -74 +58 +33 -5 -56 -84 +41 +63 +92 +70 +89 +45 +73 +39 -39 -88 +100 -67 +62 -43
+9 -41 -67 -41 +77 -5 -66 -84 -40 -66 -42 +12 -35 +94 -77 +14 +88 +64 -29 +46 -72 +67 +96 -6 -9 -4 +78 +62 +35 +1 +30 -22 +4 -38 -61 -44 -59 +91 -25 +45 -50 +53 +0 -92 -28 +13 -84
+4 +58 +77 -79 -39 -14 -89 +47 -42 -86 +85 +17 +41 -5 -21 +24 +52 -48 -64 +3 +39 +83 +97 +39 +19 -45 +48 -99 -12 -47 -91 +92 +97 +52 +83 -20 +32 +83 +29 +92 +83 +10 -30 +99 +19 -2 -45
+64 +66 -13 +23 +55 -44 -72 +14 +4 +0 +85 -23 +78 +92 -54 +62 -25 +79 +21 +40 -23 -5 -75 +75 +51 +79 +4 -98 -16 -61 +23 +69 -36 +92 -92 +38 +21 -61 -69 -43 -7 -83 -12 +49 +28 -18 +71
-69 +93 -32 -54 -19 -14 +53 -28 +84 +7 -38 -65 +81 -43 +92 +9 +78 +19 -34 +89 +54 +77 -47 +95 -71 +2 -2 -75 -20 +56 -78 +65 +6 +14 -20 -81 +52 -11 -11 -83 -63 +91 +70 +13 -43 -4 +1
-11 +52 +92 +77 -97 -29 -33 +0 -94 -41 -54 +7 +74 +46 +29 +55 +6 -12 +98 -19 -58 -77 +28 -37 -92 -62 -66 +82 -79 +81 -82 -68 +95 -65 +52 -43 +42 -97 -19 +90 +95 +98 +8 -20 -51 +44 +80
-67 -4 -88 +65 -63 -47 +73 +56 +44 -34 +81 +95 -50 -64 +28 +89 +58 -41 -63 +69 +23 -54 +82 +44 +2 -54 -97 -91 +63 +93 -51 -20 -84 -95 -55 -12 +48 +71 -23 +53 +26 -91 +17 +88 -97 -27 -46
+11 +91 -74 -90 +37 +32 +83 -87 +69 -37 +56 -88 -59 +0 -48 +80 +2 +35 +81 +52 +3 -53 -95 +1 -30 +56 -67 -67 -91 -2 +77 -22 +13 +0 +88 +25 +40 -35 -74 -48 -61 +92 +57 -7 +53 +61 -26
-38 +45 -61 -12 +61 -14 -38 -51 +59 -89 +62 +96 -52 -40 +17 +25 -83 +10 +38 -64 +89 +60 -69 -29 +46 +42 -33 -77 +6 -48 -51 +72 -35 -81 -62 -52 -4 +41 +42 +89 +25 +61 +96 +94 +75 +11 -4
+8 -15 +59 +6 +40 -45 -53 +17 -47 +84 +36 -96 +76 +33 +18 -61 -93 -34 -60 -39 -29 -49 -50 +60 -10 -56 +2 +3 -40 -89 +18 -52 +29 -32 -4 +53 -23 -71 -65 -31 +5 +13 +47 +99 +26 -17 -18
+100 +10 +65 -89 -83 -89 +38 +1 +37 -90 +25 +44 +89 -48 +56 -47 +63 -19 +100 +28 +52 -92 -8 -4 -57 -8 +69 -2 +51 -76 +65 -94 -4 +71 +96 -45 +17 -34 +3 -65 +34 +14 -10 +20 -55 -73 -40
+10 +1 -73 +19 -9 -71 +46 +23 -91 -11 +52 -86 -92 +19 +18 -2 +3 -80 +15 -72 -26 -87 +22 +98 +52 +87 +18 +32 -52 +19 -23 -10 -33 +18 -40 -18 -31 +65 -100 +25 +97 -41 -43 +100 +70 -27 +11
-96 +72 -98 +95 -70 -58 +5 -77 -98 -95 +57 -44 +89 +91 +54 +20 -52 +100 -77 -15 +89 -23 -99 -84 +72 +29 -17 -57 -92 +53 +54 -37 -7 -39 +26 -72 -37 -78 +28 +27 +58 -70 +100 -63 -70 -98 +99
-18 -43 +63 -13 +70 -69 +46 -14 -17 +98 -41 +21 -98 +34 +79 +22 +89 +87 -53 -6 -75 +63 +81 +22 -70 -87 -15 -9 -1 +19 +90 +56 -66 -75 +10 +5 -61 -40 +55 +11 +9 +29 +81 -66 +17 -3 -95
+33 -19 +56 -63 +38 -47 -68 +10 -29 +46 +70 +95 +87 +38 -73 -7 +38 +45 -86 -85 +28 +47 +59 +56 -31 +96 +94 +81 +21 -34 +84 -31 -55 -94 -17 +3 +18 +44 +24 -25 +71 +95 -49 +32 +7 -7 +65
+31 +92 +60 -66 +63 +18 -37 +16 +48 +5 +36 -40 +48 +49 -75 +40 +56 -35 +16 -20 +84 -43 +79 +40 -99 -82 +80 -48 -1 +31 -81 +34 -49 -22 +90 +8 -1 -47 +58 +97 -69 +71 -91 -38 +72 +78 -87
-72 -37 +76 -94 -53 +41 +8 +3 -84 +46 +24 -40 -51 +100 +55 -41 +30 -57 +82 -58 -93 +7 +94 +89 +91 +76 -41 -39 +100 -15 -31 -11 +6 +77 -10 +91 -91 -18 -73 +6 +39 +8 -51 +28 -16 -70 +64
+78 -95 -63 -46 +88 +21 -12 -6 -78 -8 +99 +17 -43 -68 -50 -36 +100 +19 -96 -53 -11 +57 +36 +98 +8 +64 -70 -81 +94 -81 +58 +79 -14 -76 +83 -47 -91 -54 +100 +8 -4 -17 +93 +50 -57 +66 +8
+29 +50 -13 -14 +94 +46 +25 +50 -55 +26 -27 +61 -89 +55 -41 -35 -21 -70 -6 -95 -87 +6 -72 -13 +80 +71 +63 +34 -68 -26 -12 -44 -47 -95 -36 +44 -75 -85 -89 +58 +44 +34 -21 -10 +3 -26 -60
+39 +6 -44 -89 -90 -38 +11 +19 +31 +99 -54 -90 +2 +46 -24 +1 +90 -20 +71 -56 +84 +33 +96 -85 -38 +36 -17 +88 +33 -79 +9 +10 +3 -2 +72 -28 +64 -93 +66 -18 +2 +57 +10 -70 +12 +60 -37
+79 -83 -20 -80 +20 +54 -85 -2 -72 +57 +97 -88 +61 +1 +59 -93 -89 -46 +62 -11 -37 -47 +50 +62 +6 -77 +94 -32 -68 -27 -16 +49 +39 -89 +84 +20 -65 +18 +46 -61 +94 +32 -54 +54 -14 -14 +17
--- BASE SOLUTION ---
[10, -10, -49, -26, -39, 62, -68, -72, -22, -65, -53, 29, 16, -59, -75, -59, 68, 4, 71, 10, -28, -88, -10, 11, -76, 43, -34, 62, -12, -61, -78, -68, -84, 0, -62, 53, 17, 65, 28, 11, 71, 71, -51, 50, 3, 60, 17]
[92, -70, -24, -84, -77, -77, 38, -37, -27, -39, -84, 82, -39, 74, 69, 23, 27, -67, 6, -53, -51, -18, -98, 11, -75, 17, -6, 46, -64, 79, 78, 55, 28, 0, -52, -96, 25, -11, -98, -14, -68, 18, -53, -46, -13, 6, 79]
--- MY SOLUTION ---
[10, -10, -49, -26, -39, 62, -68, -72, -22, -65, -53, 29, 16, -59, -75, -59, 68, 4, 71, 10, -28, -88, -10, 11, -76, 43, -34, 62, -12, -61, -78, -68, -84, 0, -62, 53, 17, 65, 28, 11, 71, 71, -51, 50, 3, 60, 17]
[92, -70, -24, -84, -77, -77, 38, -37, -27, -39, -84, 82, -39, 74, 69, 23, 27, -67, 6, -53, -51, -18, -98, 11, -75, 17, -6, 46, -64, 79, 78, 55, 28, 0, -52, -96, 25, -11, -98, -14, -68, 18, -53, -46, -13, 6, 79]
171 == 171
Worked.
TEST CASE: 48
----------------------------------------
48
-97 +76 +19 +91 -61 -58 +46 -16 -65 +89 +94 +50 -89 -62 -15 +90 -59 -68 +30 -6 -96 -90 -36 -85 +49 +54 -12 -53 +42 +11 -76 -95 +27 +68 -78 -97 +87 +9 +76 +45 +83 +44 +17 -70 -59 -10 -84 +62
-11 -14 +53 +31 -57 -32 -85 +78 +14 +38 -45 -20 +9 +47 +46 -1 +1 -16 -35 +61 +51 -96 +96 -90 -31 +87 -41 +2 -57 -84 +59 -51 +100 -72 -83 -17 -63 -1 +7 +93 -11 -9 -8 +79 -18 -11 +100 +75
+59 -2 -70 -86 -28 -73 -78 -99 +76 +96 +68 -38 -43 -1 +32 -95 +99 +24 +5 -16 +98 +92 +91 +42 +65 -25 +61 -95 +72 -32 -73 +95 +52 -63 -17 +29 +52 -61 +96 +43 +61 +52 +92 -29 +43 -55 +49 +73
-30 +84 +94 -69 -70 +61 +37 -52 +78 -100 +97 -77 +69 +96 -27 -30 +0 -9 +79 -3 +51 +77 +72 +45 +86 +69 -88 +57 -18 +72 -62 +47 +31 -23 +49 -45 -95 -75 -77 -44 -71 +62 -45 +20 +32 +6 +90 +3
-77 -90 +66 +80 +46 +88 -70 +22 -90 -20 +100 +58 +61 +17 +12 +88 +71 -86 +34 +4 +30 +88 -87 +75 +86 -6 -84 +15 +21 -38 -19 -12 +24 +29 -82 +63 +88 -9 -95 +83 +13 +19 +55 +43 +58 -95 -57 -27
-77 +73 +49 -35 -26 -70 -97 -92 -58 -66 -45 +79 -22 -30 +19 +76 -73 +52 -30 -53 -24 -28 -98 +92 -63 -76 -93 +52 -83 +77 +85 -65 +1 +64 -65 -75 -79 +48 +74 -25 +3 -61 +15 +63 -79 +89 -87 +34
+95 +8 -52 -10 +55 -5 +23 -19 +12 -74 +41 -50 -52 -45 -99 +25 +70 +62 -98 +6 -24 +22 +29 +24 -25 -57 +73 -60 -87 -97 -39 -49 -92 -93 -13 -59 -51 -16 -77 -92 -60 -36 -43 +72 -28 +34 +94 +79
+69 -83 -52 -80 +18 +13 -84 -65 -80 +57 -9 +36 +22 +47 -15 +45 +84 +64 -51 -95 +36 +21 -80 +75 -83 +70 -75 +73 +33 -74 +48 +67 +32 +5 +31 +27 -78 +87 +91 -30 -12 -85 +48 +1 +52 +76 +93 -15
+50 -68 -59 +39 +69 +77 +91 +47 +73 -44 -39 +31 +33 -2 +34 +32 -14 +85 -94 +82 -84 +8 -58 +62 -64 +99 +63 +86 -47 -78 -51 +14 +74 -78 -22 +60 +22 +70 +99 +88 +4 +33 +82 +47 +6 -63 -4 +0
-23 -99 +40 +29 -44 -1 +41 -93 -15 -86 +6 +23 -80 -58 -40 +7 +28 +39 +27 +45 +5 -1 +94 +1 +28 +66 -2 -60 -49 +44 -73 +26 +38 +100 +14 -76 +33 -55 -62 -98 +15 -26 -96 -49 -50 +35 +69 +61
+24 -78 -37 -100 +58 +77 -47 +98 -39 +43 +80 +37 +63 +5 -4 -37 -3 -63 +74 -23 -33 -56 -6 -88 +90 +100 -24 -42 -85 +42 -60 -99 -27 -8 +23 -51 -80 -94 -88 +31 -60 +35 -43 -84 -80 +96 -41 -100
-57 +81 -16 +78 +83 -31 +95 -17 -61 +26 +67 -12 +45 -56 -12 -90 -82 +36 +20 -39 -89 +63 +84 -75 -61 -77 +6 -88 +35 -77 -8 +27 +51 -5 +45 -91 +52 -58 +37 -48 -92 +32 -37 -55 +0 +88 +45 -33
+82 -65 +88 -7 +15 +38 +76 +49 +59 -64 -58 -87 +91 -65 -72 +1 +36 -56 -53 +63 +61 -42 -1 +43 +54 -38 -24 +10 +55 +65 -17 -43 -2 +35 -89 +52 -44 -32 +62 +92 -30 -38 +24 +23 +47 +17 -73 +75
-24 +34 +9 -45 +46 -27 +70 -97 -61 -31 -91 +71 +25 -93 +45 -88 -41 -76 -38 +6 -98 -41 -73 -72 -28 -58 -35 +50 +90 +59 -5 +26 +76 -86 +35 +31 -70 +4 -68 +88 +57 -59 -44 -22 +26 +87 -80 +99
+52 +77 +37 -100 +51 -70 -54 -70 -72 +68 -75 -25 -7 +18 +30 +98 +64 -77 -11 +24 -29 -65 -3 -31 +24 +70 -45 +48 +31 -23 +9 -57 -9 +1 -81 -16 +75 -73 -91 -37 +67 -94 -41 +57 +96 +48 +77 -4
+82 -57 +55 +78 -4 +56 -11 +94 -76 -72 +91 -81 +44 +82 +4 +81 +65 -74 +16 -63 +94 -84 +79 -55 +92 +42 -41 +67 -95 +54 +16 +9 -55 -54 +7 -37 -84 +40 -15 +47 -40 +66 -26 +30 -65 +68 +49 -93
+29 -30 +93 -41 -68 +71 -71 -55 -63 -83 +3 +79 +93 +29 -81 +67 -30 +58 -80 +65 +2 +41 +37 +79 -37 +95 -33 -67 -27 +7 +91 -59 -31 -4 +48 -89 -63 +47 +85 +0 +59 -11 +4 +46 -36 +54 -56 -63
-16 -44 +88 +49 -94 +28 +24 +37 -35 -9 -81 +94 -16 -44 +73 +75 +17 -79 -42 -82 +47 -74 -16 -67 -34 -11 +92 +41 -93 +1 +28 +23 +37 -76 -62 +92 +55 -66 +95 +96 -90 -75 +74 -9 +58 +75 +89 +93
+98 +33 +40 -12 -18 +61 -71 -93 -62 +10 +48 -28 -52 -63 -69 +79 -65 -54 +92 +47 -11 -67 +61 -10 +61 -58 +82 +91 -23 +79 -52 -47 +42 -66 -59 -83 +99 -82 -93 -82 -44 -94 -12 -80 +82 -76 -70 +92
+74 +29 -73 -24 -82 -96 +99 -33 -64 +63 +48 -50 -66 -40 -48 -78 +9 -3 -16 +21 -84 -88 -88 -70 -22 +70 +29 -88 +18 +58 +10 -36 +43 +75 +75 +7 +36 -53 +65 +17 -80 +85 -62 -34 -89 +39 -71 -30
-34 +48 +73 +67 +62 +71 +4 +34 -10 -12 -12 -58 +71 +90 +13 +16 -2 -63 +11 -99 -36 -84 +38 -85 +94 +78 -5 +10 -14 +25 +62 -78 -3 +59 -2 +89 +63 -89 -100 -32 -7 -67 +75 -80 +30 +3 +15 -10
-33 -93 +76 +40 +86 +11 -71 +27 -19 +66 +27 -54 -71 -85 -75 +5 +93 -74 -78 -5 +36 -56 +53 +32 -20 +8 -12 -51 +2 +32 -28 +74 +34 -69 +17 +99 +23 +6 -28 +4 -69 +45 -48 +78 -11 +37 +70 +18
-40 -77 -91 -3 -2 +87 +74 -7 +35 +3 -19 +68 -98 -29 -63 -9 +9 +48 +38 +28 +60 +84 +83 -11 -17 -6 +3 +47 +69 +62 -62 -75 -25 -26 +55 +25 -30 +62 -55 -19 -70 -78 -18 -92 -49 -40 +41 +99
+40 +38 +67 +73 -31 -42 -38 -3 -64 +10 +29 -88 -3 +49 -65 +53 +56 +48 -78 -94 +69 +44 -86 -9 +77 -56 +80 +37 +94 +7 -66 +46 -82 +81 +64 -58 +28 +47 +54 +51 +46 -14 -52 -80 -14 -34 +4 +39
+36 +28 +87 -19 -13 +47 -53 -95 +72 -58 -24 -50 +52 +97 +100 -69 +92 -7 -69 +19 +4 -2 +64 +60 +75 -73 +77 +80 +65 +87 +11 +14 +6 -56 +34 +36 -34 -81 -76 -50 -77 +81 -13 -83 -6 -51 +66 +12
-100 +13 -54 -19 -88 +98 +18 +7 +9 -12 +72 +75 -86 +36 -52 +94 +55 +86 +99 +55 +42 +98 +22 +23 +34 -53 -18 -76 +56 -62 +43 +72 +52 -39 -13 -30 +69 +9 -91 +45 +86 -72 +74 -37 +89 -85 +89 -1
-73 -60 -73 +99 -58 +76 -30 -81 +75 +57 +10 +35 +14 +89 +41 +24 -55 +37 +84 +5 +75 +97 -99 -45 -87 +67 +47 +98 +43 +63 +86 +22 -60 +2 -2 +56 -72 +14 +39 +49 -7 -4 +90 +57 +57 -68 -38 -76
+9 +61 -46 +69 -6 +85 -84 +51 -34 -79 -44 +49 +91 +70 -19 -56 +86 -92 +88 -98 -55 -63 -14 -79 +17 -92 -96 +39 -18 +83 -83 +39 -38 +1 +28 -10 +68 -19 +82 +54 +32 +80 +70 +56 -12 -52 -5 -79
+73 +86 +58 +9 -15 -7 -51 +71 +91 +10 -77 -4 +20 +74 -19 -33 -27 -54 +22 +38 +85 -52 +21 +21 -34 +74 +64 +39 +12 -20 +99 +85 -10 +86 +97 -81 +63 +42 -9 -14 -26 +2 +47 -13 -74 -33 -43 -77
-7 +30 +37 +71 -82 -11 +69 +17 -100 +47 +64 -88 -56 -2 -88 +69 +39 +98 -82 +35 +43 +20 -47 +98 -88 -67 +92 +29 -52 -67 -25 -96 -50 -84 +54 +19 +23 -25 +39 +1 -65 +39 +82 +33 -37 -52 +38 +2
+92 +44 +17 +47 +0 -21 -29 +64 -89 -68 -24 +83 -77 -72 +39 -18 -77 +3 +1 +10 +35 -90 -18 +93 +71 +74 +70 -27 -32 +88 +7 +45 -4 -87 -87 +51 -27 +91 +73 -20 -23 -15 -86 +22 +22 -54 +46 -21
+70 -4 -62 -22 -60 -95 -85 -6 +0 -75 -76 -6 +10 +70 -80 +55 +27 +1 -27 -26 +26 -98 +63 +87 -54 -78 -98 -96 -99 -15 +30 -30 -6 +69 -57 -1 -24 +68 +27 +46 -74 +26 +88 -36 +72 -35 +2 -39
+76 +18 +68 +15 +77 +17 -22 +53 +0 -5 -42 +99 -10 -95 -96 +15 +21 -29 +81 -27 -17 +53 +85 -40 -4 -98 -16 +19 -28 -52 -59 -58 -63 -98 +61 +20 -7 -10 +98 +86 -6 -86 +99 +88 -55 -15 +68 +95
-70 -76 -82 +0 -61 -24 -57 -61 +65 +53 +100 -52 +36 -49 +17 +30 -45 +60 -75 -54 +29 +73 +83 -91 +88 -48 +25 +42 +84 +75 +87 +57 +17 +94 +42 +70 -35 -19 -94 +81 -24 -63 -2 -5 -50 -83 +11 +19
+84 -2 +74 -66 +94 -14 -83 +18 +17 +87 +45 -8 +50 -57 -32 +38 -63 +43 +52 +8 +21 +29 +2 -14 +47 +62 +47 +19 -7 -27 +35 -9 -33 +60 -93 -31 -77 +34 -48 -83 +55 +33 +83 +99 -13 -8 +66 +79
+56 +49 +40 -20 -98 -44 +44 -59 -47 -20 +35 -56 +66 +64 -74 +66 -16 +35 +13 -92 -49 +55 -16 +84 -28 +40 +100 +87 +12 -72 -47 +78 -96 +25 +3 +30 -11 -98 +14 +6 -100 -74 +93 +62 +86 -91 -39 -70
+7 +74 -55 -84 -66 -13 +65 +11 +15 -50 -56 +91 +100 -12 +95 -22 -29 +31 +67 -55 -94 -44 +35 -33 +5 +53 +3 -92 +66 -48 +54 -27 -20 -27 -64 -40 -49 +38 +57 +88 -45 +31 -83 -38 +8 +87 +91 +90
-59 -59 +82 +58 -11 +69 -16 -46 +88 -65 +20 +9 -61 +61 +21 -1 +45 -11 -5 +5 -91 -97 -51 -77 -4 +6 -35 +79 -53 +6 +29 +9 +81 +36 +48 -35 +65 +0 -74 +87 +84 +3 +57 -23 -18 -41 -73 +40
+43 +50 +75 +89 -96 +35 -43 +76 -75 -14 -27 +52 +46 +85 -57 -60 +69 -20 +58 -83 -12 -77 -43 +21 +58 +74 +24 -36 -68 -43 -49 -81 +97 +32 +18 +21 +32 +89 -38 +44 +5 -54 -8 -1 +62 -3 +13 +94
+93 +26 +21 -52 -42 -8 -5 +63 +48 +58 -68 -95 -85 -43 -84 -90 +45 +19 -59 -8 +88 +94 -39 +18 -76 -74 -13 +60 -6 +81 -71 -43 +54 +27 -2 +79 +34 -95 -36 -22 -11 +99 +79 -45 -86 -43 +83 +86
-68 +78 +30 +47 +81 -42 -59 +57 -63 -96 -15 +54 +69 -81 +65 +20 +60 +46 -25 -1 +91 +5 -56 +68 -18 +59 +96 +58 +9 +41 +33 -80 +73 -16 +13 -99 -51 +56 -47 -58 +37 +71 -44 -88 +23 -23 +10 -18
+8 +17 +26 +41 +60 +26 +2 -83 -79 +74 -42 -68 -18 -74 +27 -53 -94 +1 +25 -5 +72 +32 -23 +2 +15 +80 +55 +91 -66 -42 -53 -79 +29 -42 +52 +17 -15 -63 -28 +98 +98 -70 -60 -80 -5 +90 +76 +15
+78 +33 -67 +57 -47 +88 +23 +53 -17 -17 -35 -70 +31 +44 +17 +25 +64 +41 +61 +47 +6 -14 +93 +61 -12 +74 -19 -73 -8 +46 -62 +88 +25 -40 +0 +21 -100 -97 -30 +96 -93 -75 +47 -60 -41 -4 -46 -3
+89 -94 -58 -25 +76 +16 -41 -76 +33 +38 -45 +16 +13 +56 +1 +36 +66 +42 +80 -51 -3 -56 -82 -99 +87 +44 +46 +67 -86 +16 -31 -23 -83 +70 +34 +78 -30 +78 -58 -91 +63 -15 -28 +36 +27 +82 +83 -76
-75 +23 -99 -45 -98 -76 -94 -18 -90 -68 +8 +50 -26 -17 -37 +86 +57 -73 +95 -43 -2 +76 -27 -71 -44 -78 +100 +15 -93 -43 +93 +4 +56 +52 -68 -64 +67 -27 +6 -66 +99 +4 +94 -52 +66 -63 +9 -70
+41 -69 -16 -80 -86 +0 -16 -35 +76 +80 -31 -79 +52 +60 +29 +26 -68 +38 +17 -38 -68 +64 +81 +60 -12 +14 -31 -16 -86 -72 -71 +36 +61 +68 -53 -40 +18 -26 -96 +96 +32 -80 -92 -69 +96 -46 +86 -39
+37 -62 +14 +47 -99 +32 +50 +45 -25 +93 -77 -9 -29 +70 +88 +67 +43 -74 -61 +92 -72 +36 +61 -51 +92 +41 -49 -46 +27 +44 +88 +17 +41 +12 -2 +57 -38 -65 -97 -29 -69 -1 -50 -76 +44 -39 +16 -45
+68 -38 -64 -51 +93 -50 -15 +23 -40 +17 -61 +81 +52 +12 -65 +84 +88 -95 +43 +86 -43 -4 +5 +25 +100 -65 +4 -14 +44 +20 -48 -92 +66 -98 -69 +74 -24 +1 +71 -30 -28 -8 -4 -6 +19 -42 -30 -22
--- BASE SOLUTION ---
[-97, -14, -70, -69, 46, -70, 23, -65, 73, -86, 80, -12, 91, -93, 30, 81, -30, -79, 92, 21, -36, -56, 83, -9, 75, -53, 47, 39, 12, -67, 7, -30, -63, 94, -93, 30, -49, 0, -38, -22, 37, -70, 47, 36, 66, -46, 16, -22]
[62, 100, -55, 32, 43, 15, -36, -12, 88, -62, -94, 52, 52, 35, 1, -55, -59, 28, 79, 18, 10, -12, -6, 77, 60, 22, 97, -55, 38, -82, 3, 27, 15, 17, -57, 66, 91, 20, -14, 48, 57, 2, 88, 76, -45, -16, -62, 68]
--- MY SOLUTION ---
[-97, -14, -70, -69, 46, -70, 23, -65, 73, -86, 80, -12, 91, -93, 30, 81, -30, -79, 92, 21, -36, -56, 83, -9, 75, -53, 47, 39, 12, -67, 7, -30, -63, 94, -93, 30, -49, 0, -38, -22, 37, -70, 47, 36, 66, -46, 16, -22]
[62, 100, -55, 32, 43, 15, -36, -12, 88, -62, -94, 52, 52, 35, 1, -55, -59, 28, 79, 18, 10, -12, -6, 77, 60, 22, 97, -55, 38, -82, 3, 27, 15, 17, -57, 66, 91, 20, -14, 48, 57, 2, 88, 76, -45, -16, -62, 68]
978 == 978
Worked.
Truncated due to size ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment