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:22Karthik 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:2203,512,420,229502,424,0001,082,0002,113,536expected "53688641128473233 ", got " A25830 k428100 kc1825520 b4pd64030031 b1629172 b6428513 A25696 k428074 kc1825476 b4pd64030035 b1629218 b6428483 A25686 k428069 kc1825483 b4pd64030017 b1629172 b6428562 "
2Oct 5, 2026 09:2203,512,421,090502,183,0001,016,0002,113,536expected "53694867205214983 ", got " A25843 k428019 kc1825398 b4pd64029991 b1629266 b6428437 A25675 k428007 kc1825406 b4pd64030004 b1629219 b6428592 A25663 k428014 kc1825394 b4pd64030049 b1629229 b6428480 "
3Oct 5, 2026 09:2203,513,635,510503,545,0001,140,0002,113,536expected "53695264764446282 ", got " A25872 k428180 kc1825463 b4pd64030124 b1629286 b6428576 A25706 k428180 kc1825456 b4pd64030142 b1629421 b6428568 A25721 k428178 kc1825472 b4pd64030124 b1629265 b6428585 "