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

Автор Edvard, история, 6 лет назад, По-русски

Hello Codeforces!

Lets discuss problems of the Poland contest. Any ideas on A? We came to the problem to count the number of minimal subsets with zero AND. How to count them?

  • Проголосовать: нравится
  • +15
  • Проголосовать: не нравится

»
6 лет назад, # |
Rev. 4   Проголосовать: нравится +5 Проголосовать: не нравится

Problem A: Let P0[i] = count of numbers i in array. Pk = Pk - 1 × P0, where  ×  is multiplication of polynomials with AND applied to indices instead of sum (like it's described here, I don't know how to correctly name such multiplication). So the task is to find least k such that Pk[0] > 0, and answer will be Pk[0]·k!
It can be done in , where N = 220 , because k is limited by , and we can find Pk[0] in linear time, without inverse transformation.

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

Any simple approach for B? We tried and got TL 52.

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

H ?