deadlycoder82's blog

By deadlycoder82, history, 13 days ago, In English

I wanted to understand why this submission https://mirror.codeforces.com/contest/1538/submission/296235176 is getting a time limit exceeded while this one https://mirror.codeforces.com/contest/1538/submission/296121430 is accepted when both are literally the same algorithms and also applied in the same way. There is hardly any difference between the two.

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

»
13 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Removing #define int long long fixes it! Here's the submission.

  • »
    »
    13 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank you for the help!!! I didn't know that a macro can have so much effect on time.