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 listSep 21, 2021 13:48Anton KrylovAnton KrylovScore: 397,527Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 13:48395,9123,347,276,0483,286,066,39802,256,896
2Sep 21, 2021 13:48397,5273,380,792,7853,299,476,05502,310,144
3Sep 21, 2021 13:48409,6023,465,877,3603,399,697,24202,187,264