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 listJul 20, 2023 18:15gchebanovgchebanovScore: 14,382Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 18:1514,357145,937,618117,163,0002,002,0002,281,472
2Jul 20, 2023 18:1514,365141,828,799117,224,0002,003,0002,478,080
3Jul 20, 2023 18:1514,374146,683,019117,298,0002,005,0002,281,472
4Jul 20, 2023 18:1514,374138,391,189117,303,0002,005,0002,383,872
5Jul 20, 2023 18:1514,379140,911,880117,342,0002,005,0002,461,696
6Jul 20, 2023 18:1514,379145,448,024117,342,0002,005,0002,461,696
7Jul 20, 2023 18:1514,382143,581,697119,371,00002,281,472
8Jul 20, 2023 18:1514,395146,132,496118,473,0001,004,0002,478,080
9Jul 20, 2023 18:1514,732173,883,400122,279,50002,281,472
10Jul 20, 2023 18:1514,739189,350,212122,329,75102,289,664
11Jul 20, 2023 18:1514,745180,955,862122,385,67702,285,568
12Jul 20, 2023 18:1515,225149,067,966125,364,0001,002,0002,269,184