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 listDec 11, 2024 20:27MatthiasMatthiasError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2024 20:2700000Error: expected "53688470969252003 ", got "53687471437393827 "
2Dec 11, 2024 20:2700000Error: expected "53689685466882991 ", got "53688667562111407 "
3Dec 11, 2024 20:2700000Error: expected "53689831587352677 ", got "53688763837159781 "
4Dec 11, 2024 20:2700000Error: expected "53688874746449643 ", got "53687640614978539 "
5Dec 11, 2024 20:2700000Error: expected "53682421317888238 ", got "53681578937281518 "