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:59Matt 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:5900000Error: expected "53687501786866966 ", got "53687524103211587 "
2Jun 5, 2024 13:5900000Error: expected "53690804697605261 ", got "53690996066291032 "
3Jun 5, 2024 14:0000000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
4Jun 5, 2024 14:0100000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
5Jun 5, 2024 14:0100000Error: expected "53692454122282622 ", got "53692466012577368 "
6Jun 5, 2024 14:0200000Error: expected "53690347978749906 ", got "53690367765129036 "
7Jun 5, 2024 14:0200000Error: expected "53690293172647990 ", got "53690357407768755 "
8Jun 5, 2024 14:0300000Error: expected "53683705634225245 ", got "53683706542003047 "
9Jun 5, 2024 14:0300000Error: expected "53686415061940367 ", got "53686462359499482 "
10Jun 5, 2024 14:0400000Error: expected "53688772225261833 ", got "53688785743692920 "