650iq's blog

By 650iq, history, 11 months ago, In English

https://mirror.codeforces.com/contest/1670/problem/B

Can someone pls tell me why im getting TLE in this.. although its just O(n). Here is my submission 238974486

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

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

Use fast I/O and 64 bit C++. Add this to your main:

ios::sync_with_stdio(0);
cin.tie(0);

And submit using language GNU C++20 (64)

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

    Thanks a lot bro..got accepted