|
|
back to boardWA5 can sb give me some hints? wa5 again and again The same problem I can't find mistake:( try this test 1 4 1.0 2.1 3.2 4.5 the right answer is 10 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 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). 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 :) |
|
|