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 listJun 4, 2024 16:55Matt 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
1Jun 4, 2024 16:5700000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
2Jun 4, 2024 16:5800000Error: expected "53687569899926622 ", got "53687581030307305 "
3Jun 4, 2024 16:555,833112,935,54148,413,84802,228,224
4Jun 4, 2024 16:555,841117,789,71848,479,55102,207,744
5Jun 4, 2024 17:005,845122,958,65148,513,12802,220,032
6Jun 4, 2024 16:555,868108,530,29248,706,64002,183,168
7Jun 4, 2024 17:005,892112,022,14048,906,17202,220,032
8Jun 4, 2024 17:005,898112,199,89748,955,53902,224,128