← Back to topics
Topic

DivsInt

Daniel93
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.
pr0ton
4
2 3 9 16

answer should be

2
2 16
vasja
my code fails one test case, WA , no ideas why , can someone look at my code or give me the test case?
vasja
that is case No. 12
Tavo92
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).