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 listMay 24, 2024 14:00Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 24, 2024 14:0000000Error: expected "53692325690294028 ", got "53692337580588774 "
2May 24, 2024 14:0100000Error: expected "53688596687606451 ", got "53688639790798312 "
3May 24, 2024 14:0100000Error: Exit with code 1: Segmentation fault at address: 0x16b0b01c0stderr
4May 24, 2024 14:0200000Error: Exit with code 1: Segmentation fault at address: 0x2ec160b100stderr
5May 24, 2024 14:006,526126,312,04954,163,58502,289,664
6May 24, 2024 14:006,555104,847,00854,409,02502,187,264
7May 24, 2024 14:006,661124,990,08255,288,94402,293,760