jagerknight's blog

By jagerknight, history, 3 years ago, In English

Recently, I wrote a recursive solution for a CSES DP problem and while doing so, there was a typo(The text predictor of CLion corrected emplace to template) and I did not notice this.

However it still compiled without errors and when I submitted it in CSES, it got accepted. I have attached a screenshot and the code below.

I thought there will be some compilation error or some error that will be thrown when this happened, but nothing happened.

Could anyone please tell me why?

Thanks in advance!

You can see one 'template' in the if condition inside the while loop.

Code

The accepted page

Full text and comments »

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

By jagerknight, history, 3 years ago, In English

I have been carrying this question around for a lot of time. How exactly does a user's rating change in codeforces? I have read a couple of blogs that analyse the rating system, but I do have a couple of doubts.

The main one which I'd like to address (and possibly get answers to) through this blog is, this: Do rating changes in contest happen based on tags or based on rating?

For example, lets say a user is at 1599(specialist) and another user is at 1601(expert). If both of them have solved the same problems in the same time during a contest, does the rating increase significantly more for the 1599 user because he's a specialist and less significantly for the 1601 user because he's an expert? Or is the difference not significant for both of them because they have a very similar rating?

Thank you!

Full text and comments »

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