I need help with the following question.↵
↵
![ ](/predownloaded/17/63/1763fd1e3f8410b23613de64efdb69dd66c905d1.png)↵
↵
UPD: There is a misprint in the question. For the second constraint, it is the constraint of K. That is, the value of↵
0 <= K <= 2*10^10.↵
↵
UPD2: It would be great if someone can provide a correct approach to the question, codechef has not published any official editorial for the regional questions.
↵
![ ](/predownloaded/17/63/1763fd1e3f8410b23613de64efdb69dd66c905d1.png)↵
↵
UPD: There is a misprint in the question. For the second constraint, it is the constraint of K. That is, the value of↵
0 <= K <= 2*10^10.↵
↵
UPD2: It would be great if someone can provide a correct approach to the question, codechef has not published any official editorial for the regional questions.