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 18, 2024 11:51Matt 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 18, 2024 11:5100000Error: expected "53688475402998105 ", got "53688449802998105 "
2Apr 18, 2024 11:5110,417157,698,45386,462,41102,265,088
3Apr 18, 2024 11:5110,423151,019,93086,508,88402,260,992
4Apr 18, 2024 11:5210,437138,661,68586,626,41802,269,184
5Apr 18, 2024 11:5210,439150,384,78486,646,99302,273,280
6Apr 18, 2024 11:5110,457150,462,48486,792,56002,269,184
7Apr 18, 2024 11:5210,517155,000,65287,289,09502,265,088