|
|
вернуться в форумWA5 can sb give me some hints? WA5 can sb give me some hints? wa5 again and again Re: WA5 can sb give me some hints? The same problem I can't find mistake:( Re: WA5 can sb give me some hints? try this test 1 4 1.0 2.1 3.2 4.5 the right answer is 10 Re: WA5 can sb give me some hints? thank you so much !!!!!!!!!! I finally find the problem. I use function round first.But it has bug! e.g. round(3.5)=3(<>4) round(3.6)=4 p.s. I use pascal. thx again Test 5 Послано Брэнд 20 мар 2008 23:27 First. Is requied number more than 0? Second. Please, give me several tests for correction my program (I don't use round-up and my code pass all tests of this forum). Re: Test 5 Obviously it's positive, otherwise division is not well defined. Also, my algo would always output 0 if I allow it to test this value :) |
|
|