zeddie's blog

By zeddie, 4 years ago, In English

Link to problem: Link

Link to my solution: Link

Can anyone please help me with my Runtime error, I can't find it. It runs perfectly on my local and on ideone.com as well.

Full text and comments »

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

By zeddie, 4 years ago, In English

I have been on CodeForces for >1y and I have studied various topics from different websites, but BitMasks is that one topic that I never found my way with.

I can solve 1800+ rated questions from Graph and DP, but I am not able to solve 1400+ rated questions from BitMasks.

I have read the theory, of how it works, but still, I am not able to solve its questions, sometimes, I don't even understand the editorial.

Here I am, asking the CodeForces community to guide me, as you guys have always been guiding me.

Thanks ;)

Full text and comments »

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

By zeddie, history, 4 years ago, In English

I was solving the last question (1433G - Reducing Delivery Cost) of the last Div3 round, and I got TLE at test case 3

Here is a link to the TLE solution by me : link

Here is link to ACCEPTED solution by icecuber : link

I even followed his code, so as to make different changes and make our code similar, but still, all I have is TLE. Please HELP!!

Full text and comments »

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

By zeddie, history, 4 years ago, In English

I'll be very short and clear:

PROBLEM: I want to learn Bitmasks DP and I am having trouble learning it.

What I did: I read few tutorials on a few websites such as HackerEarth, Quora, etc. I have got a little clue of what it's all about, but I don't have the complete picture and I am not able to solve problems.

How you can help: If you can provide links to some good beginner questions (that has an explanation for the solution), that would be really helpfull.

Thank You!!

Full text and comments »

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

By zeddie, history, 4 years ago, In English

I solved problem C, and compiled in on my machine, it worked fine.

Then I uploaded it, and I got RTE. To find any special error, I tried an online compiler** IDEONE**, again it worked fine there.

I did some minor changes to my code, Then again I submitted, fortunately, I got AC.

Still, I don't know what's the difference, Why only codeforces compiler gave me RTE? Please help me!

Here is my RTE solution: RTE solution Here is my Accepted solution: AC solution

Full text and comments »

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

By zeddie, history, 4 years ago, In English

I have been trying to learn Dynamic Programming for 2 months now, I completed a couple of youtube playlist, solved practice questions for beginners on Atcoder and some super easy questions on Codeforces.

Now, whenever I try questions from a range 1600+ questions, I am not able to do it. Also most of the time Editorial also does no good to me. I am on the verge of collapsing, it feels like Dp is not meant for me.

All those programmers who believe that they have a good grip in Dynamic Programming, Please show some support to me, share some resources to me and guide me a little.

Thanks in advance.

With Regards, Anubhav Singhal

Full text and comments »

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

By zeddie, history, 4 years ago, In English

I am using the sublime editor for running my code on my machine. And I am using File I/O like this:

#ifndef ONLINE_JUDGE freopen("/home/zeddie/Documents/input.txt","r",stdin); freopen("/home/zeddie/Documents/output.txt","w",stdout); freopen("/home/zeddie/Documents/error.txt","w",stderr); #endif __

#### PROBLEM: Sometimes when I do some error in my program that leads to an infinite loop, then my programs produce infinite output and programs keeps on running and my system starts lagging. Only option I have now is to reboot my machine.

Can anyone help me with this?

Full text and comments »

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