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 listOct 11, 2024 00:34Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 01:0100000Error: expected "53693341033764726 ", got "53693353506237437"stderr
2Oct 11, 2024 00:325,43971,773,50843,141,0002,006,0002,510,848
3Oct 11, 2024 00:325,44663,962,62843,196,0002,009,0002,334,720
4Oct 11, 2024 00:345,44768,403,83442,198,0003,014,0002,334,720
5Oct 11, 2024 00:325,44763,799,69142,195,0003,013,0002,519,040
6Oct 11, 2024 00:325,44866,330,65342,207,0003,014,0002,334,720
7Oct 11, 2024 00:325,44866,402,93542,207,0003,014,0002,347,008
8Oct 11, 2024 00:325,45069,516,96143,223,0002,010,0002,514,944
9Oct 11, 2024 00:325,45175,623,90043,235,0002,010,0002,510,848
10Oct 11, 2024 00:345,45368,608,74542,241,0003,017,0002,510,848
11Oct 11, 2024 00:325,45567,938,25542,255,0003,018,0002,519,040
12Oct 11, 2024 00:345,45575,152,70843,265,0002,012,0002,334,720
13Oct 11, 2024 00:325,45772,615,74342,277,0003,019,0002,510,848
14Oct 11, 2024 00:325,55968,785,89245,139,0001,003,0002,506,752
15Oct 11, 2024 00:345,56572,313,32343,174,0003,012,0002,498,560
16Oct 11, 2024 00:325,56573,686,64545,182,0001,004,0002,289,664
17Oct 11, 2024 00:345,56768,465,76944,196,0002,008,0002,330,624
18Oct 11, 2024 00:345,56968,181,71844,215,0002,009,0002,342,912
19Oct 11, 2024 00:325,56965,672,74644,210,0002,009,0002,330,624