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 listSep 6, 2022 16:43Bernard TeoBernard TeoScore: 8,581Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 6, 2022 16:438,56395,704,40369,071,0002,002,0002,273,280
2Sep 6, 2022 16:438,57094,109,32670,129,0001,001,0002,400,256
3Sep 6, 2022 16:438,571102,728,76769,139,0002,004,0002,396,160
4Sep 6, 2022 16:438,57891,831,66169,192,0002,005,0002,273,280
5Sep 6, 2022 16:438,579100,014,86970,201,0001,002,0002,404,352
6Sep 6, 2022 16:438,57991,601,33169,202,0002,005,0002,404,352
7Sep 6, 2022 16:438,57999,962,89370,201,0001,002,0002,400,256
8Sep 6, 2022 16:438,58193,387,95669,216,0002,006,0002,404,352
9Sep 6, 2022 16:438,58293,994,13169,221,0002,006,0002,396,160
10Sep 6, 2022 16:438,58694,240,63571,265,00002,392,064
11Sep 6, 2022 16:438,588100,377,32771,280,00002,400,256
12Sep 6, 2022 16:438,59094,130,46370,295,0001,004,0002,273,280
13Sep 6, 2022 16:4310,336148,430,86985,789,86502,281,472
14Sep 6, 2022 16:4310,345146,996,22085,867,49802,289,664
15Sep 6, 2022 16:4310,365135,872,64686,029,35902,281,472