Ceilings's blog

By Ceilings, 15 months ago, In English

We hope you enjoyed solving the problems, and thank you for participating! We are very sorry about the error in constraints for D.

Problem A — Denial

Intuition
Formal proof

Problem B — Anger

Solution

Problem C1 — Bargaining (Easy Version)

Solution

Problem C2 — Bargaining (Hard Version)

Solution

Problem D — Depression Will be updated soon.

Problem E — Acceptance

Solution
  • Vote: I like it
  • +20
  • Vote: I do not like it

»
15 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

https://ideone.com/Ypu1s1 My code assumes that you have to flip only 2 elements, isn't that incomplete ?! Still I got AC. Help.

  • »
    »
    15 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    It can actually be proven that we don't need more than 1 operation for C1, read the editorial for C2 and see how we proved we don't need more than 4 ops.

    Edit: Actually, using the method in C2, we can deduce that we don't need more than 2 operations. But don't know how to prove for 1 op. I can't find a counter-example too.

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

    We've found a counter-example for this.

    Take 7, 25, 42, 52. Your solution gives 32766. But model solution gives 32767(its possible by flipping everything). This was not present in testcases.

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

Nice editorial. I could only solve upto c1 during contest.... The problem c2 solution is great....