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

Автор zeddie, 4 года назад, По-английски

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.

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

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

Автор zeddie, 4 года назад, По-английски

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 ;)

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

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

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

I was solving the last question (1433G - Уменьшение стоимости доставки) 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!!

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Автор zeddie, история, 5 лет назад, По-английски

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?

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

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