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 11, 2026 00:46Josu San MartinJosu San MartinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2026 00:46061,406,29050,861,0001,091,0002,113,536expected "53686288254249082 ", got "53686288259022446 "
2May 11, 2026 00:46046,384,04835,999,0001,074,0002,113,536expected "53689054311144998 ", got "53689054311427237 "
3May 11, 2026 00:464,10641,664,64033,023,0001,060,0002,113,536