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 28, 2023 05:06AlexanderAlexanderScore: 215,926Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2023 05:06215,8891,862,767,3691,791,878,91402,240,512
2Jun 28, 2023 05:06215,9261,854,840,8741,792,184,67802,240,512
3Jun 28, 2023 05:06216,3461,849,798,2441,795,673,55002,236,416