DWhy the time limit is 0.2s and some people solved it for about 1 s. Now, I got Time Limit Exceeded.
What is the problem?
mThe given Time limi is just for 1 test case. The time of your solution are all those times together. So you can have each test case work for 0.19 s x 10 samples equals to 1.9s.
A0.2 is accepted time too, I think.
mIt is, but i just said 0.19 for example
AJust quick sort won't work. I've tried and it passed 3/10 test cases. Read this, you can find some ideas here. http://www.z-trening.com/new/www/html/forum.php?show_board=10002&ref_id=10002&view_topic=111362