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 listSep 9, 2021 12:20Andrey TsvetkovAndrey TsvetkovScore: 33,048Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2021 12:2033,043334,679,884274,255,30102,289,664
2Sep 9, 2021 12:2233,044332,447,303274,268,90602,293,760
3Sep 9, 2021 12:2233,045339,338,396274,275,20402,289,664
4Sep 9, 2021 12:2033,048337,598,905274,296,36502,293,760
5Sep 9, 2021 12:2233,053334,615,493274,336,04402,174,976
6Sep 9, 2021 12:2033,054336,681,397274,349,96102,301,952