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 listJun 13, 2023 11:43CadovvlCadovvlScore: 103,042Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2023 11:43103,012911,263,057855,003,50302,232,320
2Jun 13, 2023 11:43103,042928,242,469855,249,83602,232,320
3Jun 13, 2023 11:43103,054914,044,896855,351,48702,236,416