Subtask 1(30%): N, K, Xi, A, Ci <= 1000
Subtask 2(70%): No additional constraints, follows the limits stated in the pdf
Subtask 3(0%): Sample testcases
You're not logged in! Click here to login