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 listDec 24, 2021 07:22null395922null395922Score: 1,641,945Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2021 07:221,641,16313,687,804,33613,621,656,07802,252,800
2Dec 24, 2021 07:221,641,94513,699,772,01913,628,141,98102,252,800
3Dec 24, 2021 07:221,644,54213,704,904,57813,649,696,44102,256,896