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 listOct 11, 2024 13:15Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 13:1500000Error: expected "53691884120512835 ", got "53691887915664474 "stderr
2Oct 11, 2024 13:1600000Error: expected "53682361341033235 ", got "53682363587664071 "stderr
3Oct 11, 2024 13:1600000Error: expected "53692424145621772 ", got "53692444502746091 "stderr
4Oct 11, 2024 13:1600000Error: expected "53693551682289016 ", got "53693551682293749 "stderr
5Oct 11, 2024 13:1600000Error: expected "53691891563544286 ", got "53691903798436894 "stderr