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

Finally! It wasn't, so hard at all
Posted by Rabbit Girl ♥ 22 Dec 2017 00:40
Oh. My. God. JEBUS! I ACed it! Just use suffix array + Kasai and it will work out just fine. Trust me :)

But also here is what I collected about test 30 :
* Size of the string = 250000.
* All letters of English alphabet are being used.
* If we divide the string into heterogeneous and homogeneous regions, then the latter forms a majority. Moreover, longest homogeneous region = 396 and heterogeneous = 6.
* The amount of divergent adjacent characters is between 5000 and 10000.

Hope it helps :3