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 11, 2026 17:29Benjamin Rogers-NewsomeBenjamin Rogers-NewsomeError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2026 17:29010,060,286,0139,978,196,00069,139,0002,117,632expected "53685023499318830 ", got "1591356087006150830 "
2May 11, 2026 17:29010,055,329,5219,978,011,00067,214,0002,117,632expected "53683679514861376 ", got "1591391785516576576 "
3May 11, 2026 17:29010,056,154,6189,977,849,00067,073,0002,117,632expected "53685073029623048 ", got "1591318135887368168 "