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 29, 2024 14:17Joad NacerJoad NacerScore: 7,885Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 14:177,595128,024,82763,034,80702,277,376
2Apr 29, 2024 14:177,605136,586,16063,125,61302,273,280
3Apr 29, 2024 14:177,606147,442,00063,130,21002,277,376
4Apr 29, 2024 14:177,657130,330,47563,556,45102,277,376
5Apr 29, 2024 14:177,674119,685,12963,696,33802,277,376
6Apr 29, 2024 14:177,798124,845,17364,726,26602,281,472
7Apr 29, 2024 14:177,85088,331,95363,150,0002,004,0002,527,232
8Apr 29, 2024 14:177,85191,863,51763,156,0002,004,0002,285,568
9Apr 29, 2024 14:177,85390,255,58763,176,0002,005,0002,285,568
10Apr 29, 2024 14:177,86788,962,30763,287,0002,009,0002,265,088
11Apr 29, 2024 14:177,86789,300,90263,285,0002,009,0002,277,376
12Apr 29, 2024 14:177,86988,700,81463,301,0002,009,0002,285,568
13Apr 29, 2024 14:177,87387,578,90965,343,00002,285,568
14Apr 29, 2024 14:177,87386,596,57863,333,0002,010,0002,269,184
15Apr 29, 2024 14:177,87385,305,61563,336,0002,010,0002,265,088
16Apr 29, 2024 14:177,88587,851,63864,440,0001,006,0002,285,568
17Apr 29, 2024 14:177,89088,221,26564,482,0001,007,0002,269,184
18Apr 29, 2024 14:177,90196,673,67164,571,0001,008,0002,285,568
19Apr 29, 2024 14:177,90589,423,21964,602,0001,009,0002,269,184
20Apr 29, 2024 14:177,96991,465,91464,142,0002,004,0002,531,328
21Apr 29, 2024 14:177,97089,377,65464,151,0002,004,0002,285,568
22Apr 29, 2024 14:178,00093,177,91765,398,0001,006,0002,285,568
23Apr 29, 2024 14:178,09892,396,60565,208,0002,006,0002,260,992
24Apr 29, 2024 14:178,11295,660,53365,317,0002,009,0002,285,568
25Apr 29, 2024 14:178,771104,119,07971,802,000997,0002,277,376
26Apr 29, 2024 14:178,80599,543,28072,077,0001,001,0002,285,568
27Apr 29, 2024 14:178,817103,206,88771,180,0002,005,0002,260,992
28Apr 29, 2024 14:178,82498,072,82271,231,0002,006,0002,285,568
29Apr 29, 2024 14:178,82799,632,11271,259,0002,007,0002,285,568
30Apr 29, 2024 14:179,009100,367,79172,783,0001,994,0002,285,568