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 listJan 23, 2025 07:08Ian MckibbenIan MckibbenError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2025 07:0800000Error: expected "53689811894804417 ", got "MOVING 10 10 2 0 3 5 8 7 5 2 3 8 50 48 51 53 56 55 53 50 51 56 10 54 55 48 56 54 50 48 51 53 56 55 53 50 51 56 0 0 0 0 0 0 2035875260869999 2035875260869999"stderr