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 listJul 11, 2026 20:49boop34boop34Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 11, 2026 20:490153,386,490137,036,0006,036,0002,170,880expected "53689584272055317 ", got "2926245897 "stderr
2Jul 11, 2026 20:490152,794,953137,422,0005,050,0002,166,784expected "53691500449886042 ", got "78271189 "stderr
3Jul 11, 2026 20:490152,333,913137,574,0005,054,0002,170,880expected "53680976213581151 ", got "867692038 "stderr