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 listOct 5, 2026 09:20Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 09:2003,365,336,022354,495,0001,157,0002,113,536expected "53686827486738148 ", got " A26031 b4t030710 b4t130574 b8t030981 A25785 b4t030681 b4t130572 b8t030623 A25775 b4t030691 b4t130577 b8t030639 "
2Oct 5, 2026 09:2003,364,086,334353,941,0001,154,0002,113,536expected "53691423890392732 ", got " A25967 b4t030637 b4t130486 b8t030902 A25813 b4t030631 b4t130596 b8t030570 A25826 b4t030631 b4t130492 b8t030545 "
3Oct 5, 2026 09:2003,363,258,245353,121,0001,124,0002,113,536expected "53685162552570406 ", got " A25821 b4t030641 b4t130477 b8t030527 A25647 b4t030623 b4t130614 b8t030567 A25648 b4t030623 b4t130487 b8t030512 "