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:23Karthik 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:2403,552,983,482543,004,0001,074,0002,113,536expected "53691756447745785 ", got " A25890 c18s425577 c18s226089 c18s825504 c18s1626194 c19s425391 c17s425969 A25728 c18s425628 c18s226074 c18s825485 c18s1626201 c19s425374 c17s426118 A25721 c18s425563 c18s226139 c18s825499 c18s1626202 c19s425387 c17s...
2Oct 5, 2026 09:2403,553,726,854543,751,0001,019,0002,113,536expected "53693688666452766 ", got " A26114 c18s425597 c18s226110 c18s825496 c18s1626208 c19s425433 c17s425984 A25801 c18s425599 c18s226129 c18s825511 c18s1626197 c19s425400 c17s425973 A25932 c18s425585 c18s226132 c18s825509 c18s1626201 c19s425425 c17s...
3Oct 5, 2026 09:2403,553,977,673543,492,0001,158,0002,113,536expected "53687284166705211 ", got " A25834 c18s425607 c18s226164 c18s825535 c18s1626217 c19s425424 c17s426132 A25730 c18s425599 c18s226170 c18s825517 c18s1626236 c19s425420 c17s426016 A25659 c18s425590 c18s226164 c18s825529 c18s1626227 c19s425414 c17s...