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 27, 2024 14:09Matt 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 27, 2024 14:0900000Error: expected "53689767825824038 ", got "53689825539634118 "
2May 27, 2024 14:1000000Error: expected "53683199098197150 ", got "53683230587652025 "
3May 27, 2024 14:1100000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
4May 27, 2024 14:1400000Error: Exit with code 1: Segmentation fault at address: 1208025152stderr
5May 27, 2024 14:126,950108,609,47457,684,70902,203,648
6May 27, 2024 14:137,073122,427,11558,701,75802,203,648
7May 27, 2024 14:127,074127,308,91058,717,23102,207,744
8May 27, 2024 14:137,098131,662,06958,914,76302,211,840
9May 27, 2024 14:127,132124,684,30359,197,49602,211,840
10May 27, 2024 14:137,237129,693,66860,068,06702,195,456