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 29, 2024 18:34Matt 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 29, 2024 18:3400000Error: expected "53690811835929448 ", got "53690819715834248 "
2May 29, 2024 18:3400000Error: Exit with code 1: Segmentation fault at address: 1082163328stderr
3May 29, 2024 18:3500000Error: expected "53682963409993872 ", got "53682964317771674 "
4May 29, 2024 18:3600000Error: expected "53692318423504407 ", got "53692367120143557 "
5May 29, 2024 18:3600000Error: expected "53681963298019592 ", got "53681964205797394 "
6May 29, 2024 18:3700000Error: expected "53688515652226255 ", got "53688527542521001 "
7May 29, 2024 18:3700000Error: expected "53691048333367881 ", got "53691061851798968 "
8May 29, 2024 18:3800000Error: expected "53689632309753876 ", got "53689668872758610 "
9May 29, 2024 18:385,830115,818,97548,388,01302,236,416
10May 29, 2024 18:385,868120,005,32448,701,47102,228,224
11May 29, 2024 18:385,892106,775,92348,903,60102,236,416