Weak Test Cases for PEWDSVTS

This solution, which received AC but is going in Infinite loop for the following test case:

Solution: CodeChef: Practical coding for everyone

Test Case:
1
3 1 3 5 5 21
1 1 1

the code isn’t working.
But “RIP” should be the output.

3 Likes

Yes, this same found in:
https://www.codechef.com/viewsolution/24051655

1
3 10 15 5 10 100
8 8 10
or upper test case.
Here all elements in priority queue become 0 and this solution continuously keep dividing it by 2 and keep adding it!! that should result in TLE whereas these are accepted as correct answer.

1 Like

I think so, by example this test case should return RIP, but seems like that kind of test cases aren’t include.
1 98 97 1 3 100
1

1 Like