Problem — 101081I: greedy giving me TLE?

Revision en1, by noodlze, 2016-10-15 05:47:09

This is is a problem from the 2011 USP Try-outs(http://codeforces.me/gym/101081/problem/I) and I cannot view my output for the test cases. I saw it as a job sequencing problem and solved it using greedy. But I am getting TLE on test case 35: http://codeforces.me/gym/101081/submission/21429116. Is my approach wrong? The time limit should be ample for 1<= n <= 10^5 hence I don't understand why I am getting TLE? Any helps would be highly appreciated! Thanks

Tags greedy, 2011 usp try-outs, tle

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English noodlze 2016-10-15 05:47:09 503 Initial revision (published)