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 1393. Average Common Prefix

Rounding
Posted by ... 29 Aug 2007 22:50
The statement says "The only line of the output should contain the Average LCP of T with 3 digits after decimal point. "
Is this with rounding or without? I'm using printf("%0.3lf") and keep on getting WA 35
Re: Rounding
Posted by Al.Cash 22 Oct 2010 23:18
Can somebody tell what's the reason of WA 35?
I think it's not rounding.
Re: Rounding
Posted by Vedernikoff Sergey (HSE: АОП) 22 Oct 2010 23:33
Do you use long long to count total length of common prefixes? Try a test like AAA...AAA (250000 times)
Re: Rounding
Posted by Al.Cash 22 Oct 2010 23:52
I've tried both long long and double. There's no problem with such test.