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 listAug 10, 2026 18:33Lan Hoang DaoLan Hoang DaoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 10, 2026 18:330828,531,417753,269,00065,228,0002,113,536expected "53685153268730013 ", got "53685153268730015 "
2Aug 10, 2026 18:330827,412,392753,131,00064,124,0002,113,536expected "53692127512581787 ", got "53692127512581795 "
3Aug 10, 2026 18:330828,087,776753,127,00064,115,0002,113,536expected "53684544470775944 ", got "53684544470775949 "