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 listApr 10, 2024 18:33Matt 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
1Apr 10, 2024 18:3300000Error: expected "53687756817912239 ", got "53687756817909679 "
2Apr 10, 2024 18:3400000Error: expected "53683788594341730 ", got "53683788568716130 "
3Apr 10, 2024 18:3400000Error: expected "53692491929705915 ", got "53692463769705403 "
4Apr 10, 2024 18:3500000Error: expected "53681463132604422 ", got "53681463130044422 "
5Apr 10, 2024 18:3600000Error: expected "53690173705599157 ", got "53690173449598901 "