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 listSep 14, 2022 17:12Bernard TeoBernard TeoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 14, 2022 17:1200000Error: expected "53687789742566606 ", got "53687787182566606"
2Sep 14, 2022 17:1200000Error: expected "53692100339887162 ", got "53692100083887162"
3Sep 14, 2022 17:136,38180,891,64450,961,0001,998,0002,273,280
4Sep 14, 2022 17:136,38574,702,84150,993,0001,999,0002,273,280
5Sep 14, 2022 17:136,38776,023,44151,016,0002,000,0002,273,280
6Sep 14, 2022 17:136,38775,407,77751,014,0002,000,0002,273,280
7Sep 14, 2022 17:136,38876,688,40151,024,0002,000,0002,273,280
8Sep 14, 2022 17:136,39375,404,83851,058,0002,002,0002,404,352
9Sep 14, 2022 17:136,39674,587,84752,085,0001,001,0002,273,280
10Sep 14, 2022 17:136,40074,197,30552,121,0001,002,0002,273,280
11Sep 14, 2022 17:136,41274,632,32051,208,0002,008,0002,273,280
12Sep 14, 2022 17:126,534115,907,32454,233,04002,281,472
13Sep 14, 2022 17:136,542126,818,40254,300,50902,285,568
14Sep 14, 2022 17:126,542115,452,20654,299,71802,269,184
15Sep 14, 2022 17:136,544104,760,78254,311,79102,273,280
16Sep 14, 2022 17:136,547111,654,12454,337,20002,277,376
17Sep 14, 2022 17:136,547121,590,99054,341,94702,289,664
18Sep 14, 2022 17:136,547114,982,01254,339,27202,285,568
19Sep 14, 2022 17:136,551126,927,84654,373,73202,285,568
20Sep 14, 2022 17:126,554112,879,34954,397,16602,277,376