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

Автор d1312, история, 3 месяца назад, По-английски

My name is d1312 which means I want to reach 1312 rating at the end of the year. Please tell me how to do that.

What does d in d1312 mean and why are you named that
  • Проголосовать: нравится
  • -27
  • Проголосовать: не нравится

»
3 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Don't rush, I beg. Go slowly. Solving more problems and understanding the logic is more important than increasing rank. Whatever, this year has almost ended. So, you have to have a brute force approach here. Cover more topics as much as possible. I haven't achieved 1312 yet, so I take your challenge as my challenge also. Happy Coding!

»
3 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

bro that's easy for u (u just solve 5 problems in a div 2 contest(in your first contest)) so i think u can reach candidate master in a few months

»
3 месяца назад, # |
  Проголосовать: нравится -32 Проголосовать: не нравится

Use ChatGPT. It will let you check algorithmic ideas without wasting time for boring implementations. And it's implementations can be then used as editorial.

  • »
    »
    3 месяца назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    could you explain how to use GPT to check idea in more details?

    • »
      »
      »
      3 месяца назад, # ^ |
      Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

      Do you know the example B from AtCoder given as test problem to test their interface? You should sort an array interactively, asking which of 2 elements is bigger and swapping or doing whatever you want with this information. Constraints are 26 elements to be sorted

      1) with <=1000 comparisons

      2) with <=100 comparisons

      and (3) — 5 elements to be sorted with 7 comparisons.

      For each of 3 variants you get 100 points — AtCoder rules.

      You can ask yourself how many comparisons are necessary. And why 100 and 1000. Maybe you have also heard about bubble sort and merge sort. The answers of ChatGPT o1-mini were long, so I just post my questions:

      1) how many operations do I need to sort an array of size n with the merge sort?

      2) But there are different cases, worst case and best case?

      3) Can you break down the worst case for n=26, how many comparisons should be done in each step. The first step is 13 comparisons to get 13 sorted arrays with 2 elements each. And then? Assume that each merge needs maximum of comparisons, because the initial array is arranged in the worst thinkable way.

      // here, it counted 115 comparisons — too much, because constraint is 100. So, I gave him an idea

      4) we should adjust the scenario in a way that we merge the smallest array so early as possible, not at the end when we have one array of 24 and one of 2.

      // here, it counted 88 comparisons in the worst case — constraint Ok!

      5) what is the sum of 1 + 2 + ... + n ? // asking for bubble sort

      // n * (n + 1) / 2

      6) Is it also a number of operations needed to sort an array of n with the bubble sort?

      // no, it is n * (n — 1) / 2

      Here it is clear, why constraint 1000. It is for those who can't implement merge sort but can bubble sort, they get only this variant done. But if you can merge sort, you don't need bubble sort in this problem

      7) how many comparisons do we need for n=5 in the worst case with merge sort?

      // 8

      hm, constraint is 7

      8) Is there a way to sort an array of size 5 with 7 comparisons?

      // yes, because ceil(log2(5!)) == 7

      // you need a custom decision tree

»
3 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

CMs when they can't reach M be like:

»
3 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Learn CP for yourself not for revenge, if you do this you can surpass the enemy!!!

»
3 месяца назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

Just be more Chinese. You simply are not Chinese enough.

Insert some Chinese genes into your DNA.

»
3 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

considering you solved F in a div 2, i think you will do just fine

»
3 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

It requires precise skill to hit exactly 1312 rating. Either skill or luck.