Thanks for writing the round, we hope you liked the problems! You can expect our third Div. 2 contest some time in the future, hope to see you then!
Bonus: solve for every $$$k$$$ from $$$1$$$ to $$$n$$$ for $$$n \le 10^5$$$.
1712C - Очередная задача про сортировку
Bonus: solve for when $$$a_i$$$ can also be negative.
Bonus: solve for every $$$k$$$ from $$$1$$$ to $$$n$$$.
[problem:1712E]
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 answers to the problem references a bit later! Try to guess them if you haven't already.