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

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

2272A - Maximize One MEX

Idea: yvbf, Preparation: yvbf

Solution
Code
Rate the Problem!

2272B - Frogs Jump

Idea: yvbf, Preparation: yvbf

Solution
Code
Rate the Problem!

2272C - Yet Another Black Cell Problem

Idea: yvbf, Preparation: MaxBlazeIceInk

Solution
Code
Rate the Problem!

2272D - Connecting the Conflicts

Idea: yvbf, Preparation: yvbf, MaxBlazeIceInk

Solution
Code
Rate the Problem!

2272E - Memory Cell Interception

Idea: yvbf, Preparation: MaxBlazeIceInk

Solution
Code
Rate the Problem!

2272F - Tree Reduction Game

Idea: JerrySyr, Preparation: JerrySyr

Hint1
Hint2
Hint3
Hint4
Solution
Code
Rate the Problem!

2272G - Ranges

Idea: MoScenix, Preparation: MoScenix

Solution
Code
Rate the Problem!
Разбор задач Codeforces Round 1130 (Div. 2)
  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

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

Too fast editorial! Tasks are soo good!

MaxBlazeIceInk please pin announcement and editorial to the contest page.

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

    You stole my job! >:(

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

My Idea for F:

Let down[v] indicate that the position is losing for the player to move when the root is v and the previous root is its parent. Define up[v] similarly for the position coming from its parent.

By induction on the remaining branches, - down[v] is true exactly when deg(v) is even and none of its children has down true. - For a child v of u, up[v] is true exactly when deg(u) is even and none of the other neighbors of u sends a losing position toward u. For an initial root u, Bob can guarantee a victory precisely when deg(u) is even and no neighbor sends a losing position toward u.

Compute down in reverse traversal order and up in forward order. This gives all winning choices in linear time without recursion.

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

A is a bit too hard for an A problem in div 2 I suppose so

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

bad contest

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

I was too weak, I didn't believe my solution for B :'(

»
114 минут назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +7 Проголосовать: не нравится

Another way to solve D would be to use the following identities:

Maximum Independent Set = n — Minimum Vertex Cover

And since the graph given is a tree, we can use König's theorem (which works for all bipartite graphs):

Maximum Matching = Minimum Vertex Cover

Thus we can rewrite: Maximum Independent Set = n- Maximum Matching.

The problem transforms into minimizing the matching.

The matching is at least the sum of each tree’s own maximum matching. We reach that sum by connecting every other tree to the neighbor of a leaf in some tree with n >= 2: that vertex is covered by every maximum matching, and it stays that way after each connection, so no new edge increases the matching. If all trees are single vertices, any star works.

my code: https://codeforces.me/contest/2272/submission/396141747

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

for the 3rd i got stuck when we had to optimally use the x number of cells to lower down the k

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

I think A is not correct as solution and statement itself


5 3 0 2 1 4 3

it gives -1, BUT actually we can change 4 and 3 again and get the value

Before: 1 1 3 3 5 after: 1 1 3 4 5

3 > 1

What am i skipped?

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

You can solve B with bfs(pls dont do that)

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

Problem G has almost no problem solving difficulty if you know https://usaco.guide/adv/offline-del?lang=cpp.

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

can anyone explain the B please

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

second problem was real good it was all about thinking all possible cases and then u can clearly see that how only even and odd repetitions of 'f' matters!!

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

Bonus: Solve problem B without the restriction that each column contains at least one frog.

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

A-D are all very standard and uninteresting problems i cant lie :(

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

Man think for noobs like me but appreciate everyone efforts!

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

any alt sol for c?