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 listMay 26, 2022 21:05Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 26, 2022 21:0900000Error: expected "53681274241974432 ", got "53681274241715872 "stderr
2May 26, 2022 21:0900000Error: expected "53691870418362012 ", got "53691870415802012 "stderr
3May 26, 2022 21:0500000Error: expected "53684745096238215 ", got "53684745070638215 "stderr
4May 26, 2022 21:1011,349116,356,06293,197,0001,002,0002,289,664
5May 26, 2022 21:1011,352118,547,30192,216,0002,004,0002,277,376
6May 26, 2022 21:1011,355116,118,73693,242,0001,002,0002,289,664
7May 26, 2022 21:1011,359115,069,71894,277,00002,289,664
8May 26, 2022 21:1011,359124,375,00492,277,0002,006,0002,289,664
9May 26, 2022 21:1011,360119,022,21393,284,0001,003,0002,289,664
10May 26, 2022 21:1011,361122,993,46393,290,0001,003,0002,289,664
11May 26, 2022 21:1011,363117,170,78292,310,0002,006,0002,281,472
12May 26, 2022 21:1011,368123,615,19794,354,00002,289,664
13May 26, 2022 21:0711,892179,313,56198,704,90302,285,568
14May 26, 2022 21:0711,897165,398,86798,743,13302,273,280
15May 26, 2022 21:0611,901175,283,96498,780,27102,281,472
16May 26, 2022 21:1011,903168,868,36398,794,13602,285,568
17May 26, 2022 21:0611,904172,942,52798,799,06402,277,376
18May 26, 2022 21:1011,908167,063,78098,836,83102,281,472
19May 26, 2022 21:0611,909171,159,42198,846,15602,273,280
20May 26, 2022 21:1011,915179,707,93398,893,22402,273,280
21May 26, 2022 21:0712,202168,790,958101,272,56902,273,280