Codeforces and Polygon may be unavailable between Aug. 17, 19:00 (UTC) to Aug. 17, 22:00 (UTC) due to planned power outages. ×

primeprogrammer2021's blog

By primeprogrammer2021, history, 2 months ago, In English

The rating related problem is still there.

Read more »

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

By primeprogrammer2021, 3 months ago, In English

Someone said, " Dynamic Programming is easy to learn, but difficult to master. And by "learn" I mean that you know some basic theory and have solved a DP problem. If you know how to find Fibonacci numbers in O(n) time, then yes, you know DP ".

I was wondering that Fibonacci is so easy that should it be even considered a DP problem ?

Like, when I was given the formula fib[i] = fib[i-1] + fib[i-2] , I was not even told that this is DP.

What are your thoughts ?

P.S.: If someone can suggest how to master DP, it would be helpful.

Read more »

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

By primeprogrammer2021, 3 months ago, In English

I got TLE with GNU C++20 (64) : 158299729

And AC with GNU C++17 : 158299827

You can check that both the submissions are exactly same.

Also, I custom tested 158299729 and found out that it is taking 3 seconds.

Can anyone tell the main difference between these two versions?

Read more »

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

By primeprogrammer2021, history, 3 months ago, In English

I am getting WA on test 2 on 1584th token, so I can't see the test case, also cfstress is also not able to find any failing test case.

Can anyone tell where my code is wrong or on which test case it fails.

Problem : 1680C - Binary String Submission : 157821797

Please Help!!

Read more »

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

By primeprogrammer2021, history, 3 months ago, In English

I recently found out how the friends system work on Codeforces.

First I thought there would be some friend request and then accept system, but there is not.

It's simply a way to stalk someone ;)

Gentle Suggestion to MikeMirzayanov : The "Friend of" should be changed to "Followers" . So that it will show something like "Followers : 43,611 users" . As "Friend of: 43,611 users" is giving wrong interpretation that tourist is friend of that many users ;)

What are your thoughts ?

Read more »

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

By primeprogrammer2021, history, 5 months ago, In English

How to view the test cases which come after ...

It's very annoying that the cases on which the code fails are not on top and are too down that they are not visible.

Please help if there is some way.

Read more »

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