Блог пользователя arya5691

Автор arya5691, 12 лет назад, По-английски

Hi,

I was trying to solve problem 221C from Codeforces Round #136 Division 2 ! ( http://codeforces.net/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.net/contest/221/submission/2362232

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

Thank you :)

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
12 лет назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится