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 23:35zielajzielajScore: 3,801Success
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 23:353,62449,279,36929,081,0001,002,0002,523,136
2Nov 18, 2024 23:353,63952,662,58129,195,0001,006,0002,461,696
3Nov 18, 2024 23:353,80050,274,32431,538,00002,379,776
4Nov 18, 2024 23:353,80155,674,37130,531,0001,017,0002,527,232
5Nov 18, 2024 23:353,85251,497,75430,969,000999,0002,527,232
6Nov 18, 2024 23:353,85560,126,34729,997,0001,999,0002,371,584