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 5, 2024 12:39zhuang zhigangzhuang zhigangScore: 357,761Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2024 12:39356,7313,023,785,6902,960,868,02702,187,264
2Jun 5, 2024 12:39357,7613,035,065,8622,969,417,88902,314,240
3Jun 5, 2024 12:39357,8013,030,201,9592,969,748,05602,199,552