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 16:18Matt 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 16:1800000Error: expected "53688222832516444 ", got "53688287067637209 "
2May 27, 2024 16:1900000Error: expected "53690667630774688 ", got "53690678761155371 "
3May 27, 2024 16:2000000Error: expected "53681762889499735 ", got "53681774019880418 "
4May 27, 2024 16:2300000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
5May 27, 2024 16:246,166123,683,95051,174,18302,187,264
6May 27, 2024 16:216,187124,679,54451,349,73802,207,744
7May 27, 2024 16:226,196120,655,24051,428,58202,195,456
8May 27, 2024 16:246,260132,189,23951,955,58502,203,648
9May 27, 2024 16:226,273121,147,38052,063,84902,211,840
10May 27, 2024 16:216,316119,814,68452,425,56002,203,648
11May 27, 2024 16:246,323113,120,81852,484,25502,183,168
12May 27, 2024 16:216,338110,425,66752,608,33002,187,264
13May 27, 2024 16:226,403130,994,23353,146,33802,203,648