My code fails on some test cases, but I can't figure out any test case that my code wouldn't pass, can someone give me some help.
DivsInt
4
2 3 9 16
answer should be
2
2 16
2 3 9 16
answer should be
2
2 16
my code fails one test case, WA , no ideas why , can someone look at my code or give me the test case?
that is case No. 12
The problem is in "breaking the tie" between multiple candidates.
I had the same problem, so analyzing each candidate and sorting them works (Anyway, there must be a better solution).
I had the same problem, so analyzing each candidate and sorting them works (Anyway, there must be a better solution).