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 listJan 29, 2023 16:29Kevin HeaveyKevin HeaveyScore: 47,196Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 29, 2023 16:2747,141462,721,589391,273,89002,232,320
2Jan 29, 2023 16:3047,162454,481,206391,443,81602,228,224
3Jan 29, 2023 16:3047,164449,457,741391,460,13902,228,224
4Jan 29, 2023 16:2847,170468,140,712391,508,96602,228,224
5Jan 29, 2023 16:2747,182474,720,547391,610,08402,228,224
6Jan 29, 2023 16:2947,187465,446,085391,649,17602,220,032
7Sep 8, 2023 13:5847,194459,059,727391,713,68702,215,936
8Jan 29, 2023 16:2847,196464,869,539391,727,86702,228,224
9Jan 29, 2023 16:2747,200454,584,629391,763,18402,224,128
10Sep 8, 2023 13:5847,207454,119,969391,814,92402,228,224
11Jan 29, 2023 16:3047,219466,985,030391,914,94302,220,032
12Jan 29, 2023 16:2847,225453,542,211391,970,38002,232,320
13Jan 29, 2023 16:2947,227443,751,352391,985,24602,232,320
14Sep 8, 2023 13:5847,261462,380,479392,267,88002,215,936
15Jan 29, 2023 16:2947,308459,824,113392,654,27002,220,032