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 11:27Andrey TsvetkovAndrey TsvetkovScore: 33,264Success
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 11:2833,257337,215,798276,034,02802,240,512
2Sep 9, 2021 11:2733,262350,473,244276,076,32802,236,416
3Sep 9, 2021 11:2733,264331,105,273276,094,43602,232,320
4Sep 9, 2021 11:2833,264348,843,090276,087,31202,240,512
5Sep 9, 2021 11:2733,282337,681,210276,238,39602,220,032
6Sep 9, 2021 11:2833,297339,434,196276,367,56302,240,512