chrome's blog

By chrome, 11 years ago, translation, In English

Tommorow will be held Single Round Match 639 at 15:00 MSK.

Let's discuss here problems after the contest.

  • Vote: I like it
  • +55
  • Vote: I do not like it

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

I like your ID.

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

Another 3-week period between two SRMs

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

250 was cruel!!!

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

It was the HackRound :)

  • »
    »
    11 years ago, hide # ^ |
     
    Vote: I like it +29 Vote: I do not like it

    15th place: l0l h4x

    • »
      »
      »
      11 years ago, hide # ^ |
       
      Vote: I like it +1 Vote: I do not like it

      See the 33th place. No problem solved)))

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

        Yeah, well 15th place is no problem attempted.

        Also, I guess this gives us simple proof that the "positive points for challenging" rule has been removed.

        • »
          »
          »
          »
          »
          11 years ago, hide # ^ |
           
          Vote: I like it +12 Vote: I do not like it

          The rule is "non-negative points for challenging", so you still have one chance if your score is 0.

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

            Oh, okay. I'm not too familiar with TC rules, because I never read rules. I just try out stuff for practice and check what the most important stuff means (and go by common sense). And TC has a lot of more obscure ones that don't apply to me much (like this one, since I'm almost never challenging).

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

      256th lol) But I was speaking with chinese contestant in chat and discovered that "erfen" is "lower_bound" and "huangjin" is "golden_section".

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

How to solve Div 2. 500?

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

How to solve 1000? I've reduced it to some problem of linear programming with integer values, but do not know how to solve it in these constraints.

  • »
    »
    11 years ago, hide # ^ |
    Rev. 4  
    Vote: I like it +8 Vote: I do not like it

    I reduced 1100 to the form X * case1 + Y * case2, where case1 is if you feed first pet on t=0, and case2 is if you feed second pet on t=0 (eventually you'll reach a time t in which you can choose again, so you'll end up choosing case1 X times and case2 Y times).

    I couldn't finish during the contest time, but I managed to solve it in the practice room with ternary search on X. Now have fun dealing with all of the corner cases and overflows! :D

    As I can see, Petr and tourist solved it differently, so maybe their solution is a bit closer to what you came up with.

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

      I did the same as you (talking about idea), but did not come up with the ternary search approach.

      By the way, why ternary search works in this problem?

»
11 years ago, hide # |
Rev. 4  
Vote: I like it +35 Vote: I do not like it

I like the 500 problem very much though I didn't solve it in the contest. (With some array doesn't clean up and one more stupid mistake.) But I'd like to share with you guys my O(N2) solution. I am going to write a post about it. Will be updated soon. :D

UPD LINK

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

Can someone explain why in Div 1 500 folding row-wise and then column-wise independently and at the end multiplying the two values gives the correct result? My main problem is that I don't really understand why they are independent? Intuitively I thought that if the number of remaining rows is smaller, the possible column-wise folding should be smaller.

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

    Take a vertical and horizontal fold. Show that if you can fold vertically first and horizontally afterwards, the board is such that you can swap them.