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 1510. Order

Time Limit Exceeded
Posted by emotional blind 28 Oct 2006 17:38
What causes TLE #21
what is the trick?
Re: Time Limit Exceeded
Posted by M@STeR.SoBG 29 Oct 2006 12:47
I have the same problem. But I can't understand. Is such test correct?
//--------------
7
3
2
1
3
3
3
4
//--------------
I think it's wrong. Am I right?
Re: Time Limit Exceeded
Posted by Anton [SUrSU] 29 Oct 2006 13:04
Use sort, then find longest sequence.
Re: Time Limit Exceeded
Posted by Spieler (USU) 29 Oct 2006 14:01
It's correct. The answer is 3.