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 listAug 3, 2026 17:39Teow Hua JunTeow Hua JunError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 3, 2026 17:39072,466,66661,409,0001,272,0002,113,536expected "53695994177271872 ", got "53695927944892224 "
2Aug 3, 2026 17:39072,465,70161,471,0001,266,0002,113,536expected "53687481225472614 ", got "53687415639988326 "
3Aug 3, 2026 17:39072,571,68661,713,0001,011,0002,113,536expected "53687687673527800 ", got "53687621730335736 "