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 listNov 17, 2024 23:44zielajzielajScore: 3,731Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 17, 2024 23:443,52852,537,01727,266,0002,019,0002,371,584
2Nov 17, 2024 23:443,53352,821,92228,313,0001,011,0002,523,136
3Nov 17, 2024 23:443,55356,686,34329,486,00002,514,944
4Nov 17, 2024 23:443,73151,449,31828,973,0001,998,0002,387,968
5Nov 17, 2024 23:443,73858,344,20730,029,0001,000,0002,281,472
6Nov 17, 2024 23:443,73955,679,60429,032,0002,002,0002,527,232