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 listMay 29, 2024 17:32GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 17:3200000Error: expected "53687393591533795 ", got "53687393584980195 "
2May 29, 2024 17:326,242110,495,32851,808,61802,297,856
3May 29, 2024 17:326,253113,414,45051,899,15302,297,856
4May 29, 2024 17:326,256146,645,61551,928,82202,285,568
5May 29, 2024 17:326,372123,664,56352,888,70802,256,896
6May 29, 2024 17:326,394115,162,87653,072,32602,174,976
7May 29, 2024 17:326,450115,448,16353,534,14302,293,760