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 listApr 29, 2024 17:59Steve HanSteve HanScore: 16,066Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 17:5915,980211,840,523132,636,70702,301,952
2Apr 29, 2024 17:5916,016196,963,319132,930,00102,293,760
3Apr 29, 2024 17:5916,019185,080,145132,954,84902,297,856
4Apr 29, 2024 17:5916,023194,962,778132,988,36202,301,952
5Apr 29, 2024 17:5916,043191,403,657133,160,31402,179,072
6Apr 29, 2024 18:0016,059195,827,953133,286,27702,301,952
7Apr 29, 2024 17:5916,066201,219,598133,350,52902,297,856
8Apr 29, 2024 18:0016,687204,819,067138,498,60602,306,048
9Apr 29, 2024 17:5916,690192,594,958138,528,10802,301,952
10Apr 29, 2024 17:5916,732205,307,539138,878,62302,297,856
11Apr 29, 2024 17:5916,745202,990,708138,980,92002,301,952
12Apr 29, 2024 18:0016,862192,138,122139,951,55702,183,168