Candidate_noob's blog

By Candidate_noob, history, 4 years ago, In English

A few moments ago, we witness an impressive singing performance by our star demoralizer.

This makes me curious to know about special talents of other Red coders as well.

Special Request for demoralizer: A DANCE PERFORMANCE AT 5K SUBS :P

Full text and comments »

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

By Candidate_noob, history, 4 years ago, In English

Hey all, Hope you are doing great.

Yesterday, I participated in the Global Round 12 and I had a hard time implementing problem D, but I managed to finish it in time. When I submit, Got TLE on test 2. With only two minutes remaining, I panicked and couldn't figure out the bug. Afterward, I go through the code, and guess what, while precomputation, I accidentally used N(= 3e5 + 5) instead of given n.

Due to this, I missed becoming Blue :(

So, the lesson of the story is "Always use MAXN instead of N" for setting max value.

If any of you have similar experiences, please consider sharing. It will be helpful in avoiding those mistakes in the future.

Full text and comments »

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

By Candidate_noob, history, 4 years ago, In English

Hey all, Hope you are doing great. Recently, I started with Dynamic programming but got stuck in the Problem called "TETRAHEDRON":

Link for the Problem: https://codeforces.net/contest/166/problem/E

I tried my best but was not able to get rid of the Memory limit exceed. Here is my Solution: https://codeforces.net/contest/166/submission/81951399

Can anyone please help me in solving this problem using the above approach or suggest something better which uses dp?

Full text and comments »

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