Kick Start 2019 Round G
This round was the second-to-last round of the year, and also a relatively easy one.
I solved the third problem and the small data sets for problems 1 and 2. My algorithm for the second problem was correct in itself, but I did not correctly estimate the maximum number of bits in k or prevent overfl