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 14, 2024 16:36Joad 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 14, 2024 16:3600000Error: expected "53690063638868659 ", got "53690073909241415 "stderr
2Oct 14, 2024 16:364,28558,385,23835,568,00002,301,952
3Oct 14, 2024 16:364,29359,330,08334,616,0001,018,0002,473,984
4Oct 14, 2024 16:364,31960,610,29233,859,0001,991,0002,379,776
5Oct 14, 2024 16:364,33557,732,35533,979,0001,998,0002,289,664
6Oct 14, 2024 16:364,34456,911,44435,055,0001,001,0002,306,048
7Oct 14, 2024 16:364,34559,325,74035,066,0001,001,0002,531,328
8Oct 14, 2024 16:364,37356,135,84134,280,0002,016,0002,297,856
9Oct 14, 2024 16:364,44063,102,37233,866,0002,988,0002,306,048
10Oct 14, 2024 16:364,46861,921,91535,083,0002,004,0002,396,160
11Oct 14, 2024 16:364,58857,572,93635,075,0003,006,0002,535,424
12Oct 14, 2024 16:364,63964,242,56137,490,0001,013,0002,531,328
13Oct 14, 2024 16:364,66264,279,39738,695,00002,301,952