https://codeforces.com/problemset/problem/342/A

https://codeforces.com/problemset/problem/342/A

In this problem ; for this test case
6
1 2 4 1 3 5
They are showing that correct answer will be -1… But how? 1 2 4 can be a group… where 1 divides 2 and 2 divides 4… So why is it wrong?

But the rest three will not form group

1 Like

I got the point… Thanks bro…