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 listOct 11, 2024 15:04Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 15:0400000Error: expected "53688161817182459 ", got "53688154544640073 "stderr
2Oct 11, 2024 15:0400000Error: expected "53689599202763869 ", got "53689590672567732 "stderr
3Oct 11, 2024 15:0400000Error: expected "53690111772991954 ", got "53690101997326094 "stderr
4Oct 11, 2024 15:0400000Error: expected "53681516395824261 ", got "53681507420996700 "stderr