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 21, 2023 17:07Kevin HeaveyKevin HeaveyScore: 66,032Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2023 16:3365,998631,087,832547,785,97002,220,032
2Jan 21, 2023 16:1866,008617,771,935547,866,56802,256,896
3Jan 21, 2023 16:1866,010616,195,249547,884,89702,232,320
4Jan 21, 2023 16:2866,013617,978,680547,909,70702,224,128
5Jan 21, 2023 16:2866,029613,911,986548,040,86202,232,320
6Jan 21, 2023 16:1866,030618,721,118548,047,79802,232,320
7Jan 21, 2023 16:2866,032617,243,915548,066,26602,224,128
8Jan 21, 2023 16:3366,032617,001,606548,066,49402,236,416
9Jan 21, 2023 16:1866,034617,079,079548,081,73002,256,896
10Jan 21, 2023 16:1866,036622,791,728548,096,04002,236,416
11Jan 21, 2023 17:0766,044603,780,477548,161,39902,240,512
12Jan 21, 2023 17:0766,053610,186,806548,243,11402,228,224
13Jan 21, 2023 16:1866,067617,599,568548,358,32802,232,320
14Jan 21, 2023 16:3366,069604,765,580548,369,75202,224,128
15Jan 21, 2023 17:0766,162605,802,046549,141,98102,228,224