Help with error

prob: https://hack.codingblocks.com/app/contests/2022/920/problem

logic is right but showing only the result of one test case