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 15, 2026 06:07Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 15, 2026 06:0806,499,849,7106,488,415,0002,008,0002,113,536expected "53688956689993554 ", got "939263098797062424 "
2May 15, 2026 06:0806,496,097,5706,487,215,0001,112,0002,113,536expected "53685628759399836 ", got "939322820247793626 "
3May 15, 2026 06:0806,498,436,5546,487,509,0001,007,0002,113,536expected "53685038910821675 ", got "939258601511633015 "