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 27, 2024 21:55Joad NacerJoad NacerScore: 10,551Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 21:5610,325142,928,99185,696,08802,281,472
2Apr 27, 2024 21:5610,349153,582,91185,898,43402,281,472
3Apr 27, 2024 21:5510,440149,719,32486,648,74802,273,280
4Apr 27, 2024 21:5610,440149,527,70686,653,33702,252,800
5Apr 27, 2024 21:5510,525150,816,44487,360,04102,260,992
6Apr 27, 2024 21:5510,527115,403,97287,376,00002,269,184
7Apr 27, 2024 21:5610,529108,660,49485,380,0002,008,0002,359,296
8Apr 27, 2024 21:5510,534110,099,71186,426,0001,004,0002,265,088
9Apr 27, 2024 21:5610,536111,156,45985,439,0002,010,0002,265,088
10Apr 27, 2024 21:5510,538114,637,42885,458,0002,010,0002,285,568
11Apr 27, 2024 21:5510,538113,857,07186,462,0001,005,0002,285,568
12Apr 27, 2024 21:5610,539107,920,42986,466,0001,005,0002,269,184
13Apr 27, 2024 21:5510,543112,260,21386,503,0001,005,0002,265,088
14Apr 27, 2024 21:5610,543115,532,82687,510,00002,285,568
15Apr 27, 2024 21:5610,547115,884,49086,531,0001,006,0002,375,680
16Apr 27, 2024 21:5610,551115,128,43086,569,0001,006,0002,519,040
17Apr 27, 2024 21:5510,551113,235,36786,566,0001,006,0002,285,568
18Apr 27, 2024 21:5610,602111,542,74086,994,000999,0002,269,184
19Apr 27, 2024 21:5610,622111,290,62486,158,0002,003,0002,269,184
20Apr 27, 2024 21:5510,627110,873,52586,204,0002,004,0002,285,568
21Apr 27, 2024 21:5610,669116,806,85587,550,0001,006,0002,269,184
22Apr 27, 2024 21:5510,670114,662,91287,557,0001,006,0002,285,568
23Apr 27, 2024 21:5510,722153,745,94988,992,04102,277,376
24Apr 27, 2024 21:5510,833113,080,99787,917,0001,998,0002,269,184
25Apr 27, 2024 21:5511,303122,252,44691,817,0001,996,0002,285,568
26Apr 27, 2024 21:5611,322118,151,17391,975,0001,999,0002,269,184
27Apr 27, 2024 21:5611,335116,583,55792,083,0002,001,0002,383,872
28Apr 27, 2024 21:5511,336114,963,39692,091,0002,001,0002,277,376
29Apr 27, 2024 21:5611,362114,188,95694,307,00002,285,568
30Apr 27, 2024 21:5511,375116,613,09893,411,0001,004,0002,367,488