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 5, 2024 13:31Matt 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 5, 2024 13:3200000Error: expected "53689572865760691 ", got "53689752321246891 "
2Jun 5, 2024 13:3300000Error: expected "53689176805670838 ", got "53689177713448640 "
3Jun 5, 2024 13:315,36297,232,52444,503,86802,179,072
4Jun 5, 2024 13:335,365100,814,78444,529,78302,265,088
5Jun 5, 2024 13:335,37798,652,05844,631,48502,179,072
6Jun 5, 2024 13:335,382100,611,91344,667,87402,297,856
7Jun 5, 2024 13:315,414112,982,43244,939,68502,297,856
8Jun 5, 2024 13:315,428113,143,21745,048,93402,289,664