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 22:29Josu 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 22:29039,832,35131,398,0001,059,0002,113,536expected "53694283737832954 ", got "53694286310057986 "
2May 11, 2026 22:29040,420,04731,287,0001,100,0002,113,536expected "53689145876277093 ", got "53689145861679073 "
3May 11, 2026 22:29040,805,90431,363,0001,109,0002,113,536expected "53686462006773473 ", got "53686459209330077 "