I just got AC with something that shouldn't be the correct solution to the given problem. The statement asks you to find the LIS with all the numbers pairwise relatively prime, still, the test cases only require consecutive integers to be relatively prime... For example, in the cases,{ 2, 3, 4 } is a valid sequence, and judging by the statement it shouldn't be.
As I know the cases have changed recently, I'd like to know if this change is actually correct...
As I know the cases have changed recently, I'd like to know if this change is actually correct...