BledDest's blog

By BledDest, history, 3 years ago, In English

1765A - Access Levels

Idea: BledDest, preparation: awoo

Tutorial
Solution (awoo)

1765B - Broken Keyboard

Idea: vovuh, preparation: vovuh

Tutorial
Solution (vovuh)

1765C - Card Guessing

Idea: DStepanenko, preparation: BledDest

Tutorial
Solution (awoo)

1765D - Watch the Videos

Idea: BledDest, preparation: DmitryKlenov

Tutorial
Solution (DmitryKlenov)

1765E - Exchange

Idea: BledDest, preparation: BledDest

Tutorial
Solution (BledDest)

1765F - Chemistry Lab

Idea: awoo, preparation: awoo

Tutorial
Solution (awoo)

1765G - Guess the String

Idea: BledDest, preparation: BledDest

Tutorial
Solution (BledDest)

1765H - Hospital Queue

Idea: Neon, preparation: Neon

Tutorial
Solution (Neon)

1765I - Infinite Chess

Idea: DmitryKlenov, preparation: dmitryme

Tutorial
Solution (awoo)

1765J - Hero to Zero

Idea: BledDest, preparation: BledDest

Tutorial
Solution (BledDest)

1765K - Torus Path

Idea: adedalic, preparation: adedalic

Tutorial
Solution (adedalic)

1765L - Project Manager

Idea: BledDest, preparation: awoo

Tutorial
Solution (awoo)

1765M - Minimum LCM

Idea: BledDest, preparation: Neon

Tutorial
Solution (Neon)

1765N - Number Reduction

Idea: Neon, preparation: Neon

Tutorial
Solution (Neon)
  • Vote: I like it
  • +50
  • Vote: I do not like it

| Write comment?
»
3 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

Unfortunately, the editorials for two problems are not ready yet. They will appear here as soon as they're written.

  • »
    »
    12 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    no editorials visible for M and N problems

  • »
    »
    4 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    guess what! it's been more than 3 years and the editorials are still coming soon.

    i hope the editorials will be ready by 2030 ;)

  • »
    »
    7 weeks ago, hide # ^ |
     
    Vote: I like it +5 Vote: I do not like it

    it been 3 long years

  • »
    »
    7 weeks ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    To all the commenters above, the editorials have existed for a while, and you can see them if you refresh the page enough times. Idk what's causing that, so I attached a pdf of the editorial for all problems to the contest as well.

»
3 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

In problem Torus Path wording "Note that you can't visit all vertices on the antidiagonal (vertices .... at the same time." — is quite confusing.

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

can problem N can be solved by using stack data structures ?

  • »
    »
    3 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Yes indeed! You need to check for all 1 <= i <= n-1, if s[i] > s[i+1] then we can delete s[i] to obtain a smaller number. You will continue doing this till k is 0. One special case, when stack's first element is greater than 0 and all the remaining values are 0, when placing a value x > 0 and x < stack.top, if k >= stack size, delete all the elements from the stack and push the current one . P.S — You need vector to do this stack operation. Check my submission

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

The problem K is easily solvable using DP. But the greedy method is quite tricky, at least for me.

  • »
    »
    3 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Can you please explain your solution.. And how do you store which cells you have already visited? Thanks in advance

  • »
    »
    3 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    In your code,using 'for loop', you have have handled the case of going from last to first within a row.But you have not done anything in case of going from last column to first column,whenever lvl==n if prev!=n-1 , you are just returning INT_MIN.why have you ignored that case??

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Do you have some kind of proof why the answer would be moving y-axis wise and not x-axis wise. In ur code, the incrementing lvl parameter is a sifn of u are moving yaxis wise

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

The problem D can be done in O(N) using just two pointers.

AC submission: https://mirror.codeforces.com/contest/1765/submission/186659367

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Is there anyone to fail my code ? imo my logic is true and working every test cases that i used. Any help appreciated. 191443868

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Thank you BledDest for one of the most beautiful problems I've recently seen (J).

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

In problem G, using the exact same idea from the editorial, and going backwards from the end instead of forwards, you end up with $$$1000/1.5 \approx 667$$$ steps on average. Even better, when you get a reply $$$x \gt 2$$$, you can find $$$x$$$ values in one move.

»
23 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

"and at least j values that are not less than aj (let's call them Group B)" in the editorial for D, I think instead of $$$a_j$$$ it should $$$a_{n-j+1}$$$

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

the editorial for Problem C, the probability to guess the suit correctly is n-min(a,b,c,d)/4n−(a+b+c+d) or min(a,b,c,d)/4n−(a+b+c+d)?1765C - Card Guessing

»
5 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

thoughts on problem M — Minimum LCM

$$$LCM(a, b)$$$ reaches its minimum when $$$b$$$ is a multiple of $$$a$$$ (assuming $$$a ≤ b$$$), and then $$$LCM(a, b) = max(a, b) = b$$$.

So if we find the biggest divisor of $$$n$$$ and assign it to $$$a$$$, then $$$b = n - a$$$ will also be divisible by $$$a$$$ and will be the smallest multiple of $$$a$$$ such that $$$a + b = n$$$.

  • »
    »
    4 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Yeah, I really liked this approach, wasn't able to think in this direction. It was a good problem.

    Thanks for the solution <3.