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:36Joad 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:3600000Error: expected "53689415904622824 ", got "53689430446340003 "stderr
2Oct 11, 2024 01:374,47357,023,73334,119,0003,010,0002,334,720
3Oct 11, 2024 01:374,47657,359,31735,144,0002,008,0002,334,720
4Oct 11, 2024 01:374,47960,970,52035,170,0002,009,0002,334,720
5Oct 11, 2024 01:374,47955,662,76835,166,0002,009,0002,510,848
6Oct 11, 2024 01:374,48359,395,61535,197,0002,011,0002,347,008
7Oct 11, 2024 01:374,48458,567,21734,202,0003,017,0002,334,720
8Oct 11, 2024 01:374,48459,503,39235,207,0002,011,0002,334,720
9Oct 11, 2024 01:364,48562,885,57236,221,0001,006,0002,510,848
10Oct 11, 2024 01:374,48761,195,95935,229,0002,013,0002,334,720
11Oct 11, 2024 01:364,48861,153,84134,233,0003,020,0002,334,720
12Oct 11, 2024 01:374,48858,324,82934,233,0003,020,0002,334,720
13Oct 11, 2024 01:374,48864,904,27835,239,0002,013,0002,514,944
14Oct 11, 2024 01:374,48863,452,88135,238,0002,013,0002,334,720
15Oct 11, 2024 01:364,48957,941,01735,246,0002,014,0002,334,720
16Oct 11, 2024 01:364,48962,350,77035,248,0002,014,0002,334,720
17Oct 11, 2024 01:374,49063,320,31635,250,0002,014,0002,334,720
18Oct 11, 2024 01:364,49058,563,35635,252,0002,014,0002,420,736
19Oct 11, 2024 01:374,49063,251,14935,249,0002,014,0002,334,720
20Oct 11, 2024 01:374,49063,961,48234,244,0003,021,0002,334,720
21Oct 11, 2024 01:364,49158,149,40034,251,0003,022,0002,334,720
22Oct 11, 2024 01:374,49156,339,22735,264,0002,015,0002,334,720
23Oct 11, 2024 01:364,49357,278,68034,266,0003,023,0002,334,720
24Oct 11, 2024 01:374,49758,381,67834,303,0003,026,0002,506,752
25Oct 11, 2024 01:364,49857,996,04034,304,0003,026,0002,502,656
26Oct 11, 2024 01:374,50264,684,80736,355,0001,009,0002,334,720
27Oct 11, 2024 01:374,52261,141,33234,490,0003,043,0002,510,848
28Oct 11, 2024 01:364,56058,821,89535,856,0001,992,0002,502,656
29Oct 11, 2024 01:364,56263,988,37834,873,0002,989,0002,510,848
30Oct 11, 2024 01:364,56765,720,44235,911,0001,995,0002,514,944
31Oct 11, 2024 01:364,56960,660,23335,926,0001,995,0002,330,624