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 listApr 18, 2023 03:32Aaron LoviAaron LoviScore: 81,427Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2023 03:2181,321745,803,466674,961,82502,293,760
2Apr 18, 2023 03:3281,331740,864,759675,051,23102,293,760
3Apr 18, 2023 03:2181,392734,049,938675,551,81202,285,568
4Apr 18, 2023 03:3281,427729,936,254675,847,73802,297,856
5Apr 18, 2023 03:3281,431755,625,314675,874,35002,289,664
6Apr 18, 2023 03:2181,433737,576,591675,892,99502,289,664