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://codeforces.net/contest/1278/problem/C)↵
[my code](https://codeforces.net/contest/1278/submission/67241201)↵
↵
[problem C](https://codeforces.net/contest/1278/problem/C)↵
[my code](https://codeforces.net/contest/1278/submission/67241201)↵