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 13:48Matt 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 13:4800000Error: expected "53691248612242468 ", got "53691260502537214 "
2May 24, 2024 13:4800000Error: Exit with code 1: Segmentation fault at address: 0x580dc0b0e0stderr
3May 26, 2024 15:5100000Error: Exit with code 1: Segmentation fault at address: 0x2c0c602ce0stderr
4May 26, 2024 15:5100000Error: expected "53690302516863380 ", got "53690424712910506 "
5May 24, 2024 13:486,394119,406,86153,072,21502,293,760
6May 24, 2024 13:486,422110,911,88353,302,79102,273,280
7May 26, 2024 15:526,561119,012,30754,460,02702,289,664
8May 26, 2024 15:526,567113,290,94554,506,81802,281,472
9May 26, 2024 15:526,590125,789,99054,696,45402,285,568
10May 24, 2024 13:486,654126,421,97855,227,05702,293,760