When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

adzo261's blog

By adzo261, history, 4 years ago, In English

Can anyone help me with how to approach this problem?
I am completely blank on how to proceed.
I tried reading the editorial but couldn't understand it.

Problem Link

Full text and comments »

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

By adzo261, history, 4 years ago, In English

Hi Codeforces Community,
I have made an extension to be able to practice speed problem solving on Codeforces.



It can set a timer within Codeforces site so that you get the native contest like feel but for an individual problem.
You can select different timers. Once selected, if you open any problem from Problem set or Contest it will automatically start the timer if it is a new problem for you.

I am not writing much here because I have already written instructions on the github repo.

Suggestions, improvements, and Pull Requests are welcomed!
Looking forward to hearing from the community

Update:
Custom Timer Added.

Thanks!

Full text and comments »

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

By adzo261, history, 5 years ago, In English

I am looking for some way to get specific level problems(C,D,E..) from specific type of contests(Beginner, Regular,..).
I could filter by type of contest on vjudge.net but don't know if vjudge can filter level of problem too.
Can someone help, please?
Is there any other site which lists AtCoder problems by level and contest?

Full text and comments »

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

By adzo261, history, 5 years ago, In English

Can someone please help me in solving D. of today's Atcoder beginner contest.
Editorials are not available in English and I am not able to approach this problem on my own.

Problem Link

Full text and comments »

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

By adzo261, history, 5 years ago, In English

I was not able to think of a solution to this problem.
I tried to understand the editorial, but couldn't understand.
Can someone please explain to me it more clearly?

Problem Link
Editorial

Full text and comments »

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

By adzo261, history, 6 years ago, In English

I am getting a runtime error on test case 6. Since it is a large test case, I am unable to find what's giving RE in my code.

Can someone please have a look at my code, or give me some small test case similar to case 6.

Link to my solution

Full text and comments »

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

By adzo261, history, 6 years ago, In English

In normal Nim game, the player taking the last object wins.
And terminal position here is always a P -position.
Now, I have a question where you are given the terminal P and N positions unlike the only terminal condition in normal Nim.
Is this a variation of Nim? If yes, how to analyze it, how should I go about assigning grundy numbers?

Formally:
I have n heaps with represented by a set S={a1,a2,a3, .... an}.
And, I have a set T which gives terminal positions and tell whether it is a P-position or N-position.
One element of the set can be {{k1,k2,k3, .... kn},P}
where,
k1<=a1
k2<=a2
k3<=a3
.
.
kn<=an

It means the set {k1,k2,k3, .... kn} is a terminal position.
And, the second parameter denotes either 'P' or 'N' as P-position or N-position.

Can this be made equivalent to Nim?
How to analyze this?

Full text and comments »

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

By adzo261, history, 6 years ago, In English

Can someone please help me on how to arrive at the conclusion stated in the editorial?

Link to the problem

Link to the editorial

Thanks!

Full text and comments »

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

By adzo261, history, 6 years ago, In English

Can someone help me with Div 2 problem C of 468? I am unable to understand the editorial. Is there any easier approach, what is the thinking involved here? Thanks in advance!

Problem

Full text and comments »

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