← Back to topics
Topic

trka

FilipKeri
I don't know why I'm getting exit code is not zero on last test case. Other test cases work fine and they're <=0.01
Code => http://www.z-trening.com/new/www/html/submit.php?submit=7100053402&subm_code=1

Thanks in advance!
matteo123
ja ću na hrvatski.
ja mislim da dobiješ Exit code is not zero zato što ti je možda array premalen.
meni se to milijardu puta dogodilo
Al3kSaNdaR
I didn't solve task "trka" but I know that in 10th case input variables are double !
FilipKeri
@Al3kSaNdaR thank you so much, now there isn't any more exit code is not zero
nemanja1990
kad poredis realne brojeve to nemoj da radis kao i sa celim, zato ti daje pogresan rezultat

umesto if a>b pisi if a>b+0.0000001
umesto if a<b pisi if a+0.0000001<b
umesto if a=b pisi if abs(a-b)<0.0000001

jer mogu imati razliku negde na desetoj decimali pa da program da pogresno resenje