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 listOct 11, 2024 01:49Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 01:4900000Error: expected "53690089536153116 ", got "53690098965088478 "stderr
2Oct 11, 2024 01:494,47260,534,49135,115,0002,006,0002,334,720
3Oct 11, 2024 01:504,47858,778,08635,162,0002,009,0002,514,944
4Oct 11, 2024 01:504,47859,974,91734,152,0003,013,0002,510,848
5Oct 11, 2024 01:504,47963,705,77435,163,0002,009,0002,502,656
6Oct 11, 2024 01:494,48059,122,33835,177,0002,010,0002,514,944
7Oct 11, 2024 01:504,48058,230,66335,177,0002,010,0002,334,720
8Oct 11, 2024 01:494,48256,329,94934,182,0003,016,0002,510,848
9Oct 11, 2024 01:504,48459,573,11235,209,0002,011,0002,326,528
10Oct 11, 2024 01:504,48560,244,09935,216,0002,012,0002,334,720
11Oct 11, 2024 01:504,49063,997,20835,251,0002,014,0002,510,848
12Oct 11, 2024 01:494,49358,535,68334,271,0003,023,0002,510,848
13Oct 11, 2024 01:504,49362,089,16634,267,0003,023,0002,506,752
14Oct 11, 2024 01:504,50061,443,77034,320,0003,028,0002,334,720
15Oct 11, 2024 01:494,50360,040,51934,346,0003,030,0002,510,848
16Oct 11, 2024 01:494,53369,979,77434,577,0003,050,0002,334,720
17Oct 11, 2024 01:494,55661,445,07736,822,000995,0002,510,848
18Oct 11, 2024 01:504,55759,126,88234,835,0002,985,0002,330,624
19Oct 11, 2024 01:494,56058,018,27935,858,0001,992,0002,326,528
20Oct 11, 2024 01:494,56267,182,13035,875,0001,993,0002,289,664
21Oct 11, 2024 01:504,56666,902,02835,906,0001,994,0002,506,752
22Oct 11, 2024 01:494,56865,141,68535,919,0001,995,0002,506,752
23Oct 11, 2024 01:494,56960,418,93034,932,0002,994,0002,424,832
24Oct 11, 2024 01:494,57263,899,30935,952,0001,997,0002,506,752
25Oct 11, 2024 01:504,57659,780,63934,984,0002,998,0002,330,624