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 13:49Joad 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 13:4700000Error: expected "53682111531850703 ", got "53682126119057057 "stderr
2Oct 11, 2024 13:494,48462,800,61634,197,0003,017,0002,334,720
3Oct 11, 2024 13:494,48455,803,89334,198,0003,017,0002,334,720
4Oct 11, 2024 13:494,48557,871,80534,210,0003,018,0002,510,848
5Oct 11, 2024 13:494,49361,617,76735,274,0002,015,0002,510,848
6Oct 11, 2024 13:494,49659,896,24534,291,0003,025,0002,514,944
7Oct 11, 2024 13:494,49762,211,35036,319,0001,008,0002,510,848
8Oct 11, 2024 13:494,50264,145,22834,334,0003,029,0002,514,944
9Oct 11, 2024 13:494,50961,240,74634,391,0003,034,0002,510,848
10Oct 11, 2024 13:494,51661,763,34435,455,0002,026,0002,420,736
11Oct 11, 2024 13:494,56159,222,20835,866,0001,992,0002,330,624
12Oct 11, 2024 13:494,56459,229,66236,883,000996,0002,330,624
13Oct 11, 2024 13:494,56758,962,69236,910,000997,0002,330,624
14Oct 11, 2024 13:494,57064,254,85535,937,0001,996,0002,330,624
15Oct 11, 2024 13:494,57261,839,35336,947,000998,0002,330,624
16Oct 11, 2024 13:494,57561,630,92435,971,0001,998,0002,330,624
17Oct 11, 2024 13:494,57663,813,56536,982,000999,0002,330,624
18Oct 11, 2024 13:494,57959,423,33736,009,0002,000,0002,330,624
19Oct 11, 2024 13:494,58464,265,82436,047,0002,002,0002,330,624