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 28, 2022 17:48Robert BurkeRobert BurkeScore: 7,794Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 17:487,77788,595,30464,552,00002,277,376
2Dec 28, 2022 17:487,78094,485,18864,577,00002,277,376
3Dec 28, 2022 17:487,78097,509,25164,575,00002,277,376
4Dec 28, 2022 17:487,78288,412,44564,592,00002,433,024
5Dec 28, 2022 17:487,78491,278,85664,605,00002,539,520
6Dec 28, 2022 17:487,78889,301,22964,640,00002,539,520
7Dec 28, 2022 17:487,79090,909,43663,649,0001,010,0002,424,832
8Dec 28, 2022 17:487,79494,848,70062,704,0001,990,0002,277,376
9Dec 28, 2022 17:487,79591,638,34463,685,0001,010,0002,277,376
10Dec 28, 2022 17:487,79586,831,26463,701,000995,0002,428,928
11Dec 28, 2022 17:487,80888,890,57263,808,000997,0002,433,024
12Dec 28, 2022 17:487,80990,049,52164,812,00002,424,832
13Dec 28, 2022 17:487,931124,220,70065,829,43402,301,952
14Dec 28, 2022 17:487,933135,651,59965,843,31702,297,856
15Dec 28, 2022 17:487,942127,832,70465,919,31002,170,880