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 28, 2024 05:41Matt 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 28, 2024 05:4200000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
2May 28, 2024 05:4300000Error: expected "53689971811121041 ", got "53690036046241806 "
3May 28, 2024 05:4400000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
4May 28, 2024 05:4500000Error: expected "53691188246629648 ", got "53691277370798090 "
5May 28, 2024 05:4600000Error: expected "53685321460820755 ", got "53685337575623997 "
6May 28, 2024 05:416,147119,246,62251,018,75902,183,168
7May 28, 2024 05:416,169119,886,76651,198,73202,187,264
8May 28, 2024 05:416,290123,651,19452,205,06202,183,168