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:30Joad 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:3000000Error: expected "53688537918748528 ", got "53688544450697369 "stderr
2Oct 11, 2024 01:2900000Error: expected "53690843664392294 ", got "53690860235303181 "stderr
3Oct 11, 2024 01:2900000Error: expected "53692093568122141 ", got "53692098146136858 "stderr
4Oct 11, 2024 01:2900000Error: expected "53680865371598122 ", got "53680884193508397 "stderr
5Oct 11, 2024 01:2800000Error: expected "53679520520549322 ", got "53679526075190468 "stderr
6Oct 11, 2024 01:304,49458,031,66434,278,0003,024,0002,510,848
7Oct 11, 2024 01:304,49969,865,04235,321,0002,018,0002,334,720
8Oct 11, 2024 01:304,50661,563,13335,379,0002,021,0002,510,848
9Oct 11, 2024 01:304,50664,701,34334,368,0003,032,0002,510,848
10Oct 11, 2024 01:304,50663,495,04535,378,0002,021,0002,334,720
11Oct 11, 2024 01:304,50656,854,16734,366,0003,032,0002,510,848
12Oct 11, 2024 01:304,50768,288,48735,386,0002,022,0002,334,720
13Oct 11, 2024 01:304,51059,564,01535,408,0002,023,0002,514,944
14Oct 11, 2024 01:304,51261,722,74735,422,0002,024,0002,510,848
15Oct 11, 2024 01:304,51459,107,81635,441,0002,025,0002,519,040
16Oct 11, 2024 01:304,51458,681,15135,439,0002,025,0002,510,848
17Oct 11, 2024 01:304,51767,284,24534,454,0003,040,0002,514,944
18Oct 11, 2024 01:304,51763,427,95635,461,0002,026,0002,334,720
19Oct 11, 2024 01:304,51765,577,83035,465,0002,026,0002,510,848
20Oct 11, 2024 01:304,51856,522,62935,472,0002,027,0002,441,216
21Oct 11, 2024 01:304,51956,067,95335,482,0002,027,0002,510,848
22Oct 11, 2024 01:304,52162,125,61436,512,0001,014,0002,506,752
23Oct 11, 2024 01:304,52256,641,48835,507,0002,028,0002,510,848
24Oct 11, 2024 01:304,52264,380,34236,522,0001,014,0002,392,064
25Oct 11, 2024 01:304,52264,729,17735,505,0002,028,0002,510,848
26Oct 11, 2024 01:304,52765,921,24635,541,0002,030,0002,510,848
27Oct 11, 2024 01:304,53172,853,02336,593,0001,016,0002,514,944
28Oct 11, 2024 01:304,53163,744,75534,562,0003,049,0002,334,720
29Oct 11, 2024 01:304,53467,836,75536,616,0001,017,0002,510,848
30Oct 11, 2024 01:304,53669,639,59035,615,0002,035,0002,510,848
31Oct 11, 2024 01:304,55662,981,76434,833,0002,985,0002,334,720
32Oct 11, 2024 01:304,59259,780,50037,114,0001,003,0002,506,752
33Oct 11, 2024 01:304,59460,232,02435,122,0003,010,0002,338,816
34Oct 11, 2024 01:304,60159,833,00537,186,0001,005,0002,330,624
35Oct 11, 2024 01:304,60360,507,54536,196,0002,010,0002,330,624
36Oct 11, 2024 01:304,61662,746,99636,298,0002,016,0002,506,752
37Oct 11, 2024 01:304,62164,320,32036,335,0002,018,0002,277,376
38Oct 11, 2024 01:304,62460,497,21036,358,0002,019,0002,506,752