Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listNov 14, 2024 13:13Igor ZyginIgor ZyginError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 14, 2024 13:1300000Error: expected "53683155477655006 ", got "53681742684825199 "
2Nov 14, 2024 13:1300000Error: expected "53691803010990011 ", got "53681742684825199 "
3Nov 14, 2024 13:1400000Error: expected "53686970096362704 ", got "53681742684825199 "
4Nov 14, 2024 13:1400000Error: expected "53682051415499948 ", got "53681742684825199 "
5Nov 14, 2024 13:1400000Error: expected "53691275622601025 ", got "53681742684825199 "
6Nov 14, 2024 13:1400000Error: expected "53690515567848357 ", got "53681742684825199 "
7Nov 14, 2024 13:1400000Error: expected "53688657547584519 ", got "53681742684825199 "
8Nov 14, 2024 13:1500000Error: expected "53692470771748367 ", got "53681742684825199 "
9Nov 14, 2024 13:1500000Error: expected "53686136940829273 ", got "53681742684825199 "
10Nov 14, 2024 13:1500000Error: expected "53682821488838519 ", got "53681742684825199 "
11Nov 14, 2024 13:1500000Error: expected "53683005407849576 ", got "53681742684825199 "