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 16:14Joad 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 16:1500000Error: expected "53689904172127058 ", got "53689914742797056 "stderr
2Oct 11, 2024 16:144,43166,794,59933,797,0002,982,0002,289,664
3Oct 11, 2024 16:144,43363,037,12534,807,0001,988,0002,306,048
4Oct 11, 2024 16:144,43361,332,22233,808,0002,983,0002,301,952
5Oct 11, 2024 16:144,43462,980,93734,810,0001,989,0002,351,104
6Oct 11, 2024 16:454,43567,677,41233,827,0002,984,0002,351,104
7Oct 11, 2024 16:454,43670,330,21734,830,0001,990,0002,301,952
8Oct 11, 2024 16:144,43667,352,92334,826,0001,990,0002,306,048
9Oct 11, 2024 16:144,43767,671,72234,833,0001,990,0002,351,104
10Oct 11, 2024 16:144,43962,807,30733,853,0002,987,0002,351,104
11Oct 11, 2024 16:144,44065,402,33934,858,0001,991,0002,306,048
12Oct 11, 2024 16:144,44059,073,00834,864,0001,992,0002,297,856
13Oct 11, 2024 16:144,44061,205,81234,864,0001,992,0002,351,104
14Oct 11, 2024 16:144,44362,482,36633,887,0002,990,0002,293,760
15Oct 11, 2024 16:454,44659,175,74135,906,000997,0002,351,104
16Oct 11, 2024 16:144,44862,307,39334,921,0001,995,0002,351,104
17Oct 11, 2024 16:144,48657,624,75936,230,0001,006,0002,396,160
18Oct 11, 2024 16:144,50267,551,58435,350,0002,020,0002,301,952
19Oct 11, 2024 16:144,50459,795,79935,360,0002,020,0002,297,856
20Oct 11, 2024 16:144,50760,862,29135,384,0002,021,0002,293,760
21Oct 11, 2024 16:144,53063,387,67934,552,0003,048,0002,379,776
22Oct 11, 2024 16:144,53667,031,51533,684,0003,962,0002,351,104