Problem N - Slimes DP problem of Atcoder

In this problem , why i can’t use a greedy approach by using min priority queue , it is giving WA at 12th test case out of 16 , but my doubt is which test case will actually fail ??