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 listJul 1, 2021 16:51Vitaliy F.Vitaliy F.Score: 639,930Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 1, 2021 16:51639,1535,366,178,8235,304,972,56802,277,376
2Jul 1, 2021 16:51639,9305,378,026,6815,311,421,04702,285,568
3Jul 1, 2021 16:51640,0865,372,626,2865,312,716,21002,285,568