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 1546. Japanese Sorting

When TLE 24
Posted by AterLux 13 Sep 2010 20:28
It is "antiquicksort" test. Use pivot differ from (bottom + top) / 2, for example, random choosed.
Re: When TLE 24
Posted by IgorKoval(from Pskov) 14 Jan 2012 19:41
maybe it's "antiquicksort" test.
I use anti("antiquicksort" test) coding   =)

for( long i=0; i < 1e6; ++i ) swap( v[rand()%v.size()], v[rand()%v.size()] );
where 'v' is vector of string. =)

Edited by author 14.01.2012 19:42

Edited by author 14.01.2012 19:42