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 30, 2022 16:25ZakirZakirScore: 1,641,694Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 16:251,641,31313,694,733,46913,622,898,42102,244,608
2Dec 30, 2022 16:251,641,69413,695,371,29213,626,061,06002,252,800
3Dec 30, 2022 16:251,642,29813,690,668,91613,631,071,06002,252,800