← Back to topics
Topic

DivsInt

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

answer should be

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