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 5, 2024 20:05AndreiAndreiScore: 367,891Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2024 20:05366,8333,071,429,1482,958,778,00085,935,0002,355,200
2Oct 5, 2024 20:05367,8913,084,837,3482,942,586,000110,909,0002,371,584
3Oct 5, 2024 20:05372,1653,119,412,8652,972,048,000116,923,0002,367,488