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 listMar 31, 2024 13:42E SequeiraE SequeiraScore: 54,780Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 31, 2024 13:2654,726521,972,059454,222,61802,293,760
2Mar 31, 2024 13:4254,765515,983,471454,553,49202,293,760
3Mar 31, 2024 13:2654,771530,008,049454,597,01902,289,664
4Mar 31, 2024 13:2654,780516,808,610454,676,23202,285,568
5Mar 31, 2024 13:4254,795520,745,513454,800,59202,293,760
6Mar 31, 2024 13:4254,815527,140,769454,967,84702,170,880