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

Автор Akpr, история, 23 месяца назад, По-английски

Hello Community !! Hope u doing well

Just now , I have received a message from system , that my solution matches that with that of a user( i am not mentioning it ) . The problems was 1731D and we are aware that one part of the question(in which we had to find maxima for each k size square as already a renowned problem). I just added binary search to that already published solution. And as per rules, we are allowed to refer to articles published before the contest period.

It is my kind request to please accept my solutions and please revert my ratings. I know these types of blogs gets ignored but still if possible see in my case. MikeMirzayanov

Below attached is the link from which I took one part of the question , I just added binary search in my solution.

Link to the article(Refer to deNsuh comment(published on June 23, 2020)

My solution — Akpr/186930449

Plag Solution number — aaditya_20/186926164

Thankss!!

Полный текст и комментарии »

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

Автор Akpr, история, 3 года назад, По-английски

I have a big fear!!

Before a contest, i become extremely nervous to give the contest or not(very much scared of rating downfall)

Moreover I feel that I have attained my best rating(upto what is my potential) and should now focus on increasing my level(doing >= 1600 in my case) and then start giving contests when i am comfortable on this range . **** Does this notion work or I should do something else to increase my performance?

And also it would be extremely helpful to guide to how to maintain coolness in a contest

Thanks

Полный текст и комментарии »

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

Автор Akpr, история, 3 года назад, По-английски

Dear community Why the output of below code is not -1 ?

CODE --------------------------

include<bits/stdc++.h>

using namespace std;

int main(){ vector v; cout << v.size() — 1 << endl;

}


RECIEVED OUTPUT => 4294967295 but not -1

Полный текст и комментарии »

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

Автор Akpr, история, 3 года назад, По-английски

Question

I did the above question in complexity of O(nlogn) and using vectors . I didn't knew why this happened as the with the given constraints my solution in nlogn should run!

But on changing vectors to array format ,it worked!!!

soln1

soln2

As you can see there is only one difference of conversion of vector maxel to an array

It would be kind if someone can tell how can this happen and where can i safely use a vector instead of an array.

thanks

Полный текст и комментарии »

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

Автор Akpr, история, 3 года назад, По-английски

Guys I dont know that in which cases I am getting INT_MAX as the output of the question

https://codeforces.net/problemset/problem/1556/B

My solution https://codeforces.net/problemset/submission/1556/135339790

I used the same technique as shown in the editorial of this question and tried almost all the combinations and my code is working for all of those combinations

Can you please help if u r able to find the wrong test case

Thanks

Полный текст и комментарии »

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