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 00: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 00:2600000Error: expected "53693179837596601 ", got "53693184265085378"stderr
2Oct 11, 2024 00:2600000Error: expected "53684699829278398 ", got "53684701061037645"stderr
3Oct 11, 2024 00:2600000Error: expected "53690021754250980 ", got "53690020960286791"stderr
4Oct 11, 2024 00:305,84269,481,81946,470,0002,020,0002,506,752
5Oct 11, 2024 00:265,84369,605,36945,467,0003,031,0002,334,720
6Oct 11, 2024 00:265,84771,385,94846,505,0002,021,0002,334,720
7Oct 11, 2024 00:265,84774,929,40246,510,0002,022,0002,334,720
8Oct 11, 2024 00:265,84770,553,23246,509,0002,022,0002,334,720
9Oct 11, 2024 00:265,84870,423,74747,525,0001,011,0002,514,944
10Oct 11, 2024 00:265,84880,549,55947,529,0001,011,0002,334,720
11Oct 11, 2024 00:265,85073,632,32247,541,0001,011,0002,441,216
12Oct 11, 2024 00:305,85076,907,08046,530,0002,023,0002,510,848
13Oct 11, 2024 00:295,85871,829,67945,583,0003,038,0002,514,944
14Oct 11, 2024 00:265,86077,458,80046,610,0002,026,0002,506,752
15Oct 11, 2024 00:295,86078,994,64946,612,0002,026,0002,334,720
16Oct 11, 2024 00:295,86277,246,56946,627,0002,027,0002,510,848
17Oct 11, 2024 00:305,88474,771,13645,848,0002,990,0002,318,336
18Oct 11, 2024 00:265,95876,392,74847,433,0002,018,0002,334,720
19Oct 11, 2024 00:265,96980,809,24148,531,0001,011,0002,330,624
20Oct 11, 2024 00:305,97374,740,96648,568,0001,011,0002,330,624
21Oct 11, 2024 00:295,97380,246,05848,568,0001,011,0002,498,560
22Oct 11, 2024 00:265,97875,945,71448,609,0001,012,0002,330,624
23Oct 11, 2024 00:295,97978,076,17649,626,00002,506,752
24Oct 11, 2024 00:265,97975,287,84947,602,0002,025,0002,506,752
25Oct 11, 2024 00:305,98280,639,45848,641,0001,013,0002,330,624
26Oct 11, 2024 00:295,98371,899,70648,647,0001,013,0002,510,848
27Oct 11, 2024 00:306,00281,506,79446,826,0002,988,0002,330,624