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 18:07Bernard TeoBernard TeoScore: 7,089Success
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 18:077,08587,363,76257,808,000996,0002,408,448
2Sep 6, 2022 18:077,08687,803,18057,818,000996,0002,273,280
3Sep 6, 2022 18:077,08690,188,95056,820,0001,993,0002,273,280
4Sep 6, 2022 18:077,08784,657,53456,830,0001,994,0002,273,280
5Sep 6, 2022 18:077,08788,346,88256,830,0001,994,0002,273,280
6Sep 6, 2022 18:077,08784,848,43856,831,0001,994,0002,273,280
7Sep 6, 2022 18:077,08889,872,97856,834,0001,994,0002,273,280
8Sep 6, 2022 18:077,08981,810,91557,841,000997,0002,273,280
9Sep 6, 2022 18:077,09087,892,41456,851,0001,994,0002,392,064
10Sep 6, 2022 18:078,260142,121,80468,561,02102,281,472
11Sep 6, 2022 18:078,270144,820,53968,640,32302,277,376
12Sep 6, 2022 18:078,315137,666,05669,016,82902,277,376
13Sep 6, 2022 18:078,53196,827,36069,808,000997,0002,400,256
14Sep 6, 2022 18:078,54395,662,35268,906,0001,997,0002,277,376
15Sep 6, 2022 18:078,54494,147,77968,921,0001,997,0002,404,352