arya5691's blog

By arya5691, 12 years ago, In English

Hi,

I was trying to solve problem 221C from Codeforces Round #136 Division 2 ! ( http://codeforces.me/contest/221/problem/C ) and the approach that I am using is to simply sort the array, and then compare it with the original for mismatches.

When I submitted this code by checking JAVA7, I got a Time Limit Exceeded, but when I submitted exactly the same code by selecting JAVA6, it got accepted. Any idea why ? Any insight into this would be most appreciated since I am very confused.

JAVA7 SUBMISSION : http://codeforces.me/contest/221/submission/2362232

JAVA6 SUBMISSION : http://codeforces.me/contest/221/submission/2362234

Thank you :)

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
12 years ago, # |
  Vote: I like it +5 Vote: I do not like it