ENG
RUS
Timus 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
WA 30……Help
Posted by
grayluck
29 Sep 2011 11:40
I use suffix array to solve this problem...but i've WA 30 many times and don't know why.
Can someone give me some hint or tests ?
Re: WA 30……Help
Posted by
IgorKoval(from Pskov)
12 Apr 2012 01:41
for var 'ans' use __int64 type.
and printf( "%.3lf\n", (ans+0.0)/(n-1) );
© 2000–2024
Timus Online Judge Team
. All rights reserved.