Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Comments

Yes even i did this one in question DP Integers some test cases were changed after sometime

as suggested in comments below Arrays.sort is issue here try to sort using this

static void sort(int[] a) {
        ArrayList<Integer> l = new ArrayList<>();
        for (int i : a) l.add(i);
        Collections.sort(l);
        for (int i = 0; i < a.length; i++) a[i] = l.get(i);
    }
Dont use System.out.println(ans); instead use PrintWriter for output stream or alternatively you can also use stringBuilder to  append all your answer and finally print your StringBuilder

Thankx a lot!!! :)

Thanks but 38798575 isn't this submission same ?