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 listOct 9, 2023 20:29Serge SmirnovSerge SmirnovScore: 38,558Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2023 20:2938,543401,577,928319,903,15902,281,472
2Oct 9, 2023 20:3038,550385,267,019319,964,89602,285,568
3Oct 9, 2023 20:3038,555387,295,183320,002,56602,293,760
4Oct 9, 2023 20:2938,558381,759,703320,028,69302,289,664
5Oct 9, 2023 20:2938,563376,471,725320,076,20802,289,664
6Oct 9, 2023 20:3038,563400,154,071320,070,88202,260,992