As the statement did not state very clear, I would like to ask if a subseqeunce can be empty? (Not choosing any pairs at all)
Also what is the answer if there is no valid subseqeunces at all?
As the statement did not state very clear, I would like to ask if a subseqeunce can be empty? (Not choosing any pairs at all)
Also what is the answer if there is no valid subseqeunces at all?
This is the problem https://www.codechef.com/IOIPRAC/problems/INOI1602
In both the cases, the answer should be 0.
A Link to Q will be appreciated ^^