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 18:07Robert BurkeRobert BurkeScore: 7,738Success
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 18:077,68783,968,20462,808,000996,0002,424,832
2Dec 28, 2022 18:077,68887,644,78462,814,000997,0002,277,376
3Dec 28, 2022 18:077,69282,449,56562,843,000997,0002,510,848
4Dec 28, 2022 18:077,72381,239,69562,097,0002,003,0002,277,376
5Dec 28, 2022 18:077,72586,205,79963,116,0001,001,0002,539,520
6Dec 28, 2022 18:077,73685,824,75763,203,0001,003,0002,424,832
7Dec 28, 2022 18:077,73785,366,89363,212,0001,003,0002,277,376
8Dec 28, 2022 18:077,73885,526,16163,226,0001,003,0002,539,520
9Dec 28, 2022 18:077,74385,701,64663,259,0001,004,0002,277,376
10Dec 28, 2022 18:077,75687,714,95564,372,00002,277,376
11Dec 28, 2022 18:077,75684,766,00862,367,0002,011,0002,433,024
12Dec 28, 2022 18:077,75783,711,73664,383,00002,433,024
13Dec 28, 2022 18:077,858123,021,04165,224,33202,174,976
14Dec 28, 2022 18:077,860116,206,58065,236,17202,174,976
15Dec 28, 2022 18:077,866115,696,07765,287,87802,170,880