I was doing question[problem:1303D] [fill the bag](https://mirror.codeforces.com/contest/1303/problem/D)having submission [submission:73494540] but error in coming in 275th test case and not able to find error by my own can someone find the logical error in the code , my submission logic is quite similar to that of editorial.