ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1539. Intelligence Data

WA5 can sb give me some hints?
Posted by format_jam 4 Mar 2007 10:50
WA5 can sb give me some hints?
wa5 again and again
Re: WA5 can sb give me some hints?
Posted by KIRILL(ArcSTU) 4 Mar 2007 19:42
The same problem
I can't find mistake:(
Re: WA5 can sb give me some hints?
Posted by Tipikin Evgeniy (USU) 8 Mar 2007 13:18
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?
Posted by format_jam 10 Mar 2007 17:30
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
Posted by Брэнд 20 Mar 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
Posted by Denis Koshman 19 Aug 2008 05:48
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 :)