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

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

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)
  • Проголосовать: нравится
  • +50
  • Проголосовать: не нравится

»
3 года назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

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

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

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 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

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

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

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

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

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

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

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 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

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

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.

»
2 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

"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 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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$$$.