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

format_jam WA5 can sb give me some hints? [5] // Problem 1539. Intelligence Data 4 Mar 2007 10:50
WA5 can sb give me some hints?
wa5 again and again
KIRILL(ArcSTU) Re: WA5 can sb give me some hints? [2] // Problem 1539. Intelligence Data 4 Mar 2007 19:42
The same problem
I can't find mistake:(
Tipikin Evgeniy (USU) Re: WA5 can sb give me some hints? [1] // Problem 1539. Intelligence Data 8 Mar 2007 13:18
try this test
1 4
1.0
2.1
3.2
4.5

the right answer is 10
format_jam Re: WA5 can sb give me some hints? // Problem 1539. Intelligence Data 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 [1] // Problem 1539. Intelligence Data 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).
Denis Koshman Re: Test 5 // Problem 1539. Intelligence Data 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 :)