In some problems, the logic I apply seems to be true. And it works fine with a sub task. But with larger values [ original constraints ] the sub task shows a WA output.
Suppose that a constraint is as large as 10^10, then how do we approach a correct solution?
Besides we aren’t given any reference test cases.