I just find the nearest different number and if we can't choose the more jars choose the jar with smaller d[] array.Then I got RTE,can you help me?↵
↵
[problem C](https://mirror.codeforces.com/contest/1278/problem/C)↵
[my code](https://mirror.codeforces.com/contest/1278/submission/67241201)↵
↵
[problem C](https://mirror.codeforces.com/contest/1278/problem/C)↵
[my code](https://mirror.codeforces.com/contest/1278/submission/67241201)↵