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 5, 2021 14:11David KlassenDavid KlassenScore: 116,368Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 5, 2021 14:14116,2931,032,573,985965,230,23102,228,224
2Aug 5, 2021 14:11116,3201,033,856,218965,459,10702,228,224
3Aug 5, 2021 14:14116,3581,027,776,005965,770,19202,228,224
4Aug 5, 2021 14:14116,3681,021,406,949965,857,13502,224,128
5Aug 5, 2021 14:11116,3771,027,943,846965,932,91302,215,936
6Aug 5, 2021 14:11116,4191,020,988,893966,275,08102,224,128