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 21, 2022 18:34zhiayangzhiayangScore: 58,048Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2022 18:3457,935540,531,334480,861,83302,289,664
2Aug 21, 2022 18:3357,986546,668,713481,283,19402,277,376
3Aug 21, 2022 18:3358,004557,080,213481,436,51902,281,472
4Aug 21, 2022 18:3458,048540,625,412481,799,45502,281,472
5Aug 21, 2022 18:3460,298558,357,449500,474,70802,269,184
6Aug 21, 2022 18:3360,407567,749,997501,379,29602,273,280