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 listMay 26, 2024 16:39Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 26, 2024 16:4000000Error: expected "53689482158454311 ", got "53689495676885398 "
2May 26, 2024 16:4000000Error: Exit with code 1: Segmentation fault at address: 2149712128stderr
3May 26, 2024 16:4100000Error: expected "53686196251969869 ", got "53686240077402895 "
4May 26, 2024 16:4200000Error: expected "53691965254779223 ", got "53692001125223134 "
5May 26, 2024 16:4200000Error: expected "53687200767585219 ", got "53687212657879965 "
6May 26, 2024 16:4300000Error: Exit with code 1: Segmentation fault at address: 2359552stderr
7May 26, 2024 16:4300000Error: expected "53688373567756993 ", got "53688431281567073 "
8May 26, 2024 16:4400000Error: expected "53684058922324277 ", got "53684091370672246 "
9May 26, 2024 16:4400000Error: Exit with code 1: Segmentation fault at address: 4260352stderr
10May 26, 2024 16:4500000Error: Exit with code 1: Segmentation fault at address: 10487812stderr
11May 26, 2024 16:396,325111,792,44752,493,51602,232,320
12May 26, 2024 16:396,353119,179,77252,733,89702,220,032
13May 26, 2024 16:456,378112,516,08352,936,83302,232,320
14May 26, 2024 16:456,383123,945,76452,982,68602,228,224
15May 26, 2024 16:396,426126,945,86053,338,10702,252,800
16May 26, 2024 16:456,439116,716,93453,447,32802,256,896