RakibJoy's blog

By RakibJoy, history, 20 months ago, In English

Please look at my two submissions.

204540477 204540870

My question is why I am getting TLE in my second submission?

The only difference between these submissions is given in the picture.

As far as I know, the complexity of the upper bound doesn't depend on the value.

Please Help.

Thanks in advance.

Full text and comments »

  • Vote: I like it
  • +6
  • Vote: I do not like it

By RakibJoy, history, 2 years ago, In English

Can anyone please explain why my second solution is getting tle ?

I just used push_front() instead of push_back() here.

First Solution — 188254737

Second Solution — 188254960

Problem — 1527E - Partition Game

Thanks in advance.

Full text and comments »

  • Vote: I like it
  • +20
  • Vote: I do not like it

By RakibJoy, history, 3 years ago, In English

How my friends submission 80262789 for this problem 913A - Возведение в степень по модулю is accepted? Here 1 ≤ n ≤ 10^8 and he used pow() function for the value of 2^n.

Full text and comments »

  • Vote: I like it
  • +17
  • Vote: I do not like it

By RakibJoy, history, 3 years ago, In English

My friend's submission 120906590 is showing AC but I think it should be wrong answer for test cases like

1005 1005

If I'm not wrong please add some more cases.

Full text and comments »

  • Vote: I like it
  • +13
  • Vote: I do not like it

By RakibJoy, history, 4 years ago, In English

In this submission 104338791 of mine there is an array named sufmn.But later I declared a vector also named sufmn and it caused no problem.Can anyone please explain this?

Full text and comments »

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