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 listMay 4, 2025 22:51Aniruddha DebAniruddha DebError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2025 22:5100000Error: expected "53692713548267610 ", got "53692732501555612 "stderr
2May 4, 2025 22:5200000Error: expected "53679904063395500 ", got "53678271207009524 "stderr
3May 4, 2025 22:526,45382,378,90751,542,0002,021,0002,314,240
4May 4, 2025 22:526,46482,298,14549,603,0004,049,0002,318,336
5May 4, 2025 22:526,53173,802,12450,195,0004,015,0002,482,176