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 [3] // Problem 1393. Average Common Prefix 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
Al.Cash Re: Rounding [2] // Problem 1393. Average Common Prefix 22 Oct 2010 23:18
Can somebody tell what's the reason of WA 35?
I think it's not rounding.
Vedernikoff Sergey (HSE: АОП) Re: Rounding [1] // Problem 1393. Average Common Prefix 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)
Al.Cash Re: Rounding // Problem 1393. Average Common Prefix 22 Oct 2010 23:52
I've tried both long long and double. There's no problem with such test.