LaunchpadParsing, sums
L1: Signal Check
Orimovo's relay dish has picked up a transmission from the supply sleigh. Each line of your input holds one or more integers separated by single spaces. Some are negative.
Before anything else, the signal officer wants a checksum: the sum of every integer in the transmission. For example:
12 -7 31 -5 40 8 -63 2 -16
The line sums are 36, 35, 8 and -77, so the checksum is 2.
What is the sum of every integer in your transmission?