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?
# | User | Rating |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
Name |
---|
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.
Any simple approach for B? We tried and got TL 52.
We had . We used Mo algo, but to maintain set size we didn't use set, just boolean array and current size
How to achieve with MO? is now feasible with original MO, but not .
That was a stupid typo, , ofc
Sorry for being misleading
Thank you, I was just a bit confused :D
H ?