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 12, 2021 10:24tirochkintirochkinScore: 2,772,086Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2021 10:242,771,37423,060,197,60423,002,404,88002,232,320
2Oct 12, 2021 10:242,772,08623,074,069,20323,008,316,47502,236,416
3Oct 12, 2021 10:242,778,99623,118,787,15523,065,670,55702,232,320