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 20, 2026 16:23Pavel KrajcevskiPavel KrajcevskiError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2026 16:230457,710,633445,590,0001,137,0002,113,536expected "53687201052068848 ", got "53437052054970597 "
2May 20, 2026 16:230453,690,682441,518,0001,011,0002,113,536expected "53690047631851897 ", got "54325027002183139 "
3May 20, 2026 16:230453,597,806440,672,0001,238,0002,113,536expected "53689707491791030 ", got "53337120366368488 "