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 listAug 9, 2021 17:01Dmitry SukhodolovDmitry SukhodolovScore: 994,438Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 9, 2021 17:01991,8338,286,184,2528,232,215,40202,260,992
2Aug 9, 2021 17:01994,4388,313,358,0938,253,832,30102,256,896
3Aug 9, 2021 17:01995,9748,330,005,3218,266,586,18202,252,800