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 18, 2024 01:47zielajzielajScore: 3,839Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 18, 2024 01:473,79255,411,10531,477,00002,269,184
2Nov 18, 2024 01:473,79750,189,89531,516,00002,531,328
3Nov 18, 2024 01:473,83556,936,26530,837,000994,0002,371,584
4Nov 18, 2024 01:473,83963,449,63029,876,0001,991,0002,514,944
5Nov 18, 2024 01:473,85553,838,73930,996,000999,0002,473,984
6Nov 18, 2024 01:473,87557,685,75931,159,0001,005,0002,523,136