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 listApr 26, 2024 22:22Joad NacerJoad NacerScore: 15,566Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2024 22:2215,492184,024,553128,580,14902,277,376
2Apr 26, 2024 22:2215,495204,933,467128,610,31302,273,280
3Apr 26, 2024 22:2215,518198,826,486128,802,25702,277,376
4Apr 26, 2024 22:2215,556157,654,908127,113,0002,001,0002,510,848
5Apr 26, 2024 22:2015,556155,026,219128,113,0001,000,0002,506,752
6Apr 26, 2024 22:2215,558155,135,509128,133,0001,001,0002,519,040
7Apr 26, 2024 22:2215,561158,964,896127,152,0002,002,0002,285,568
8Apr 26, 2024 22:2015,563149,674,062128,172,0001,001,0002,514,944
9Apr 26, 2024 22:2015,565155,295,198127,189,0002,002,0002,285,568
10Apr 26, 2024 22:2215,565155,640,293127,184,0002,002,0002,277,376
11Apr 26, 2024 22:2015,565156,602,748128,185,0001,001,0002,510,848
12Apr 26, 2024 22:2015,566155,492,842127,196,0002,003,0002,285,568
13Apr 26, 2024 22:2215,566155,618,701127,198,0002,003,0002,285,568
14Apr 26, 2024 22:2215,573151,696,807129,259,00002,510,848
15Apr 26, 2024 22:2015,576151,385,162127,274,0002,004,0002,285,568
16Apr 26, 2024 22:2215,576157,178,228127,280,0002,004,0002,510,848
17Apr 26, 2024 22:2215,578157,556,192127,296,0002,004,0002,519,040
18Apr 26, 2024 22:2015,581154,664,792128,324,0001,002,0002,285,568
19Apr 26, 2024 22:2015,584155,507,364128,342,0001,002,0002,510,848
20Apr 26, 2024 22:2015,591199,549,676129,407,79002,269,184
21Apr 26, 2024 22:2015,617197,439,002129,619,34502,269,184
22Apr 26, 2024 22:2015,792205,418,066131,074,61902,269,184
23Apr 26, 2024 22:2016,291156,933,694133,215,0002,003,0002,506,752
24Apr 26, 2024 22:2216,302173,110,635134,305,0001,002,0002,285,568