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 listJun 12, 2024 19:44Matt 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
1Jun 12, 2024 19:4900000Error: expected "53687272020425301 ", got "53687320245165756 "
2Jun 12, 2024 19:5600000Error: Exit with code 1: Segmentation fault at address: 378164751872stderr
3Jun 12, 2024 19:5600000Error: expected "53692026326899259 ", got "53692205784945203 "
4Jun 12, 2024 19:5500000Error: expected "53686602098570502 ", got "53686652910628549 "
5Jun 12, 2024 19:5400000Error: expected "53684648149939604 ", got "53684659280320287 "
6Jun 12, 2024 19:5400000Error: expected "53687569671498826 ", got "53687580801879509 "
7Jun 12, 2024 19:5300000Error: expected "53687596500004154 ", got "53687662723438833 "
8Jun 12, 2024 19:5300000Error: expected "53686046175349340 ", got "53686089278541201 "
9Jun 12, 2024 19:5200000Error: Exit with code 1: Segmentation fault at address: 378164751872stderr
10Jun 12, 2024 19:5200000Error: Exit with code 1: Segmentation fault at address: 53155990592stderr
11Jun 12, 2024 19:5100000Error: expected "53692405419545995 ", got "53692808891752127 "
12Jun 12, 2024 19:5000000Error: expected "53679771426542767 ", got "53679796407757261 "
13Jun 12, 2024 19:5000000Error: expected "53684699239238371 ", got "53684746714135155 "
14Jun 12, 2024 19:4900000Error: expected "53692907303729211 ", got "53692973779514061 "
15Jun 12, 2024 19:4800000Error: expected "53686626919920736 ", got "53686675144661191 "
16Jun 12, 2024 19:4800000Error: expected "53690723395448250 ", got "53690735285742996 "
17Jun 12, 2024 19:4700000Error: Exit with code 1: Segmentation fault at address: 380921491968stderr
18Jun 12, 2024 19:4600000Error: expected "53682109902327034 ", got "53682110810104836 "
19Jun 12, 2024 19:4600000Error: expected "53690219527207385 ", got "53690310828479550 "
20Jun 12, 2024 19:4500000Error: Exit with code 1: Segmentation fault at address: 378164751872stderr
21Jun 12, 2024 19:4500000Error: expected "53689383336937181 ", got "53689401643519826 "
22Jun 12, 2024 19:4400000Error: expected "53682748469012875 ", got "53682760359307621 "
23Jun 12, 2024 19:575,286116,500,71143,872,35702,179,072
24Jun 12, 2024 19:575,309133,261,59144,066,32802,297,856
25Jun 12, 2024 19:575,359115,900,62744,482,86402,179,072