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 4, 2024 18:30Matt 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 4, 2024 18:3000000Error: expected "53682826588164111 ", got "53682876197447597 "
2Jun 4, 2024 18:3100000Error: expected "53691816308895638 ", got "53691906402017839 "
3Jun 4, 2024 18:3100000Error: expected "53689596257237625 ", got "53689597165015427 "
4Jun 4, 2024 18:3200000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
5Jun 4, 2024 18:3200000Error: expected "53681636906890094 ", got "53681677977249977 "
6Jun 4, 2024 18:4300000Error: expected "53692075870289822 ", got "53692097467132763 "
7Jun 4, 2024 18:4400000Error: expected "53691764465083804 ", got "53691770076205142 "
8Jun 4, 2024 18:4400000Error: expected "53682060785741970 ", got "53682113036958918 "
9Jun 4, 2024 18:4600000Error: expected "53683017300919095 ", got "53683033228043159 "
10Jun 4, 2024 18:475,644118,567,50046,847,32702,297,856
11Jun 4, 2024 18:475,649123,021,99846,886,21502,293,760
12Jun 4, 2024 18:475,660108,618,92546,976,11302,174,976