| # | User | Rating |
|---|---|---|
| 1 | jiangly | 3810 |
| 2 | Benq | 3676 |
| 3 | Kevin114514 | 3655 |
| 4 | maroonrk | 3463 |
| 5 | strapple | 3447 |
| 6 | Um_nik | 3387 |
| 7 | heuristica | 3322 |
| 8 | turmax | 3317 |
| 9 | tourist | 3307 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 156 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | Um_nik | 141 |
| 5 | Errichto | 139 |
| 6 | adamant | 137 |
| 7 | AmShZ | 135 |
| 8 | BledDest | 132 |
| 9 | maroonrk | 131 |
| 10 | qwexd | 129 |
|
On
duckladydinh →
Can we use FFT to compute the first n values of a self-convolution form in O(nlogn)?, 20 months ago
0
The following Python code works for calculating Catalan using online FFT. |
|
On
duckladydinh →
Can we use FFT to compute the first n values of a self-convolution form in O(nlogn)?, 20 months ago
0
The link is here: CDQ convolution (online FFT) generalization with Newton method |
|
0
A problem on this topic: 1765J - Hero to Zero. Considering its dual problem gives a clear sight on this problem. |
|
+6
Here is another way to calculate $$$\binom{n}{m} \bmod 2$$$. We know that $$$\binom{n}{m} = \frac{n!}{m!(n - m)!}$$$. Define $$$P(n) = \max\{k : 2^k | n!\} = \sum_{i = 1}^{+\infty} \lfloor \frac{n}{2^i} \rfloor$$$. Then $$$\binom{n}{m} \bmod 2 = 1$$$ iff $$$P(n) - P(m) - P(n - m) = 0$$$. Obviously, we can calculate $$$P(n)$$$ in $$$O(\log n)$$$ time, but here is a more efficient way. Suppose $$$n = 2^{a_1} + 2^{a_2} + \cdots + 2^{a_m}$$$. Then Obviously, $$$m = \text{popcount}(n)$$$, the number of $$$1$$$(s) in binary form of $$$n$$$, which can be calculated fast in C++ with |
|
+3
I met the same situation: cf-tool warns |
|
+13
For problem E, consider for a certain $$$(i, j), i \le j$$$, how many times does $$$A_i ^ {A_{i + 1} \cdots A_j}$$$ contribute to the final answer, when putting XOR both between $$$A_{i - 1}$$$ and $$$A_i$$$, and between $$$A_j$$$ and $$$A_{j + 1}$$$. |
|
+13
Also check this. |
|
0
You can use the main site for viewing problem statement, while using the mirror sites for submission :P |
|
0
Try submitting using Codeforces Tool, or through these mirror sites: |
|
+1
If you sort the rows by the first element in increasing order, it turns out that blue rows is a prefix of the matrix. |
|
0
Me too, but only 810 ms. record |
|
+6
Iterate over a vector using or |
|
0
So is this one. Does the number 199199199199199 have a special meaning? |
| Name |
|---|


