My code gives successful compilation on ideone and my pc, however here it gives runtime error. Could anyone please tell why?
CodeChef: Practical coding for everyone (last attempt)
My code gives successful compilation on ideone and my pc, however here it gives runtime error. Could anyone please tell why?
CodeChef: Practical coding for everyone (last attempt)
In the 1st subtask no. of elements in d <= 524288. So an array of 100000 cannot store all the values hence rte.
In the second subtask N <= 1000000000 hence tle. Hope that helps.
CodeChef: Practical coding for everyone after adding fast input I got AC on at least the 1st subtask