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 4, 2021 11:44Andrey TsvetkovAndrey TsvetkovScore: 112,355Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2021 11:45112,305988,531,749932,131,29802,207,744
2Jun 4, 2021 11:45112,308999,395,464932,160,37902,199,552
3Jun 4, 2021 11:44112,332988,025,831932,358,69402,207,744
4Jun 4, 2021 11:44112,3551,001,596,100932,543,42902,211,840
5Jun 4, 2021 11:45112,364994,293,138932,618,24602,211,840
6Jun 4, 2021 11:44112,418988,097,805933,066,06202,207,744