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 listDec 15, 2023 14:01matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2023 14:0100000Error: expected "53685635080506337 ", got "53685632520506337 "
2Dec 15, 2023 14:0100000Error: expected "53693137174677890 ", got "53693137174652290 "
3Dec 15, 2023 14:026,75980,588,22554,096,0002,003,0002,408,448
4Dec 15, 2023 14:026,79078,534,00855,355,0001,006,0002,260,992
5Dec 15, 2023 14:026,80277,813,43754,437,0002,016,0002,486,272
6Dec 15, 2023 14:026,80978,437,11455,504,0001,009,0002,260,992
7Dec 15, 2023 14:026,84582,264,72254,818,0001,993,0002,412,544
8Dec 15, 2023 14:026,84581,823,61454,818,0001,993,0002,523,136
9Dec 15, 2023 14:026,87182,726,24655,028,0002,001,0002,396,160
10Dec 15, 2023 14:026,98185,436,48156,943,000999,0002,260,992
11Dec 15, 2023 14:026,996126,635,48458,064,51902,281,472
12Dec 15, 2023 14:027,037117,984,90358,405,39802,277,376
13Dec 15, 2023 14:027,130137,026,55459,178,13602,285,568
14Dec 15, 2023 14:027,14882,283,87259,327,00002,523,136