Akpr's blog

By Akpr, history, 23 months ago, In English

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!!

Full text and comments »

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

By Akpr, history, 3 years ago, In English

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

Full text and comments »

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

By Akpr, history, 3 years ago, In English

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

Full text and comments »

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

By Akpr, history, 3 years ago, In English

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

Full text and comments »

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

By Akpr, history, 3 years ago, In English

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

Full text and comments »

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