Thanks for participating in the round, we hope you liked the problems!
Bonus: solve for every $$$k$$$ from $$$1$$$ to $$$n$$$ for $$$n \le 10^5$$$.
Bonus: solve for when $$$a_i$$$ can also be negative.
Bonus: solve for every $$$k$$$ from $$$1$$$ to $$$n$$$.
1712E2 - LCM Sum (hard version)
Bonus: solve the problem in $$$\mathcal{O}((n + t) \log n)$$$ or better.
Bonus: solve for $$$n, q \le 10^6$$$.
Don't forget to rate the problems!
PS: Solution codes probably will be added later
PPS: I will post the explanations to the references a bit later, try to guess them if you haven't already!