Hohol's blog

By Hohol, 14 years ago, In Russian

Контест закончился, давайте пообсуждаем. Как решать C?

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

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

I wonder how checker works on problem E.

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

    Heard of Nim?

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

    The problem won't change much if you replace K with 18 — K. According to the constraints (K <= 18, output length <= 2^9+36) a simple brute force checker should suffice: binom(18,9)*2^9 ≈ 25 millions, a factor of 18 being avoided by bit hacks

»
14 years ago, hide # |
 
Vote: I like it -29 Vote: I do not like it

to slowww