aabs08's blog

By aabs08, 11 years ago, In English

i have been trying the problem http://codeforces.me/contest/313/problem/C i first coded in python it gave me tle in testcase 48 when i converted the same code to c i got wrong answer in test 4 while i copied the test on my terminal my ans was correct though it was giving wrong on codeforces tester i changed long long to unsinged it gave me tle in testcase 11 and we all know that python is slower than c so how can python be faster for testcase 11?in addition to that i used in build-sort in python while i used in build quick sort in c and c++ you can see and there should be click on unofficial to see. http://codeforces.me/submissions/aabs08

  • Vote: I like it
  • -11
  • Vote: I do not like it

»
11 years ago, # |
  Vote: I like it 0 Vote: I do not like it

int a[100100] -> int a[2000100]

  • »
    »
    11 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    thanx :) got it figured very silly !! my algo needs to improve :)

  • »
    »
    11 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    finally got it accepted thanx a lot :) !!