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 8, 2024 16:01matsuoka-601matsuoka-601Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2024 16:0100000Error: expected "53689818360636842 ", got "92409455923970625"stderr
2Jun 8, 2024 16:0200000Error: expected "53687590080447738 ", got "69825004000072358"stderr
3Jun 8, 2024 16:0200000Error: No answer to stdout. Died or killed?stderr
4Jun 8, 2024 16:0200000Error: No answer to stdout. Died or killed?stderr
5Jun 8, 2024 16:0300000Error: No answer to stdout. Died or killed?stderr
6Jun 8, 2024 16:0400000Error: No answer to stdout. Died or killed?stderr
7Jun 8, 2024 16:035,266116,162,88543,706,75902,240,512
8Jun 8, 2024 16:035,447128,306,63045,207,98102,252,800
9Jun 8, 2024 16:035,458111,975,83545,297,77802,244,608