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 listSep 24, 2026 04:33EdgarEdgarError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 24, 2026 04:36077,005,77661,589,0005,066,00024,576expected "53679159887960576 ", got "292220018890136253 "
2Sep 24, 2026 04:36076,229,69561,192,0004,728,00024,576expected "53688625370212044 ", got "292258090924844588 "
3Sep 24, 2026 04:36076,907,00161,765,0004,866,00024,576expected "53685521395353459 ", got "292340630949935188 "