| # | User | Rating |
|---|---|---|
| 1 | Benq | 3857 |
| 2 | jiangly | 3810 |
| 3 | maroonrk | 3534 |
| 4 | tourist | 3528 |
| 5 | Kevin114514 | 3510 |
| 6 | turmax | 3411 |
| 7 | Um_nik | 3387 |
| 8 | Radewoosh | 3367 |
| 9 | heuristica | 3322 |
| 10 | strapple | 3317 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | maspy | 150 |
| 3 | Um_nik | 146 |
| 4 | Errichto | 139 |
| 5 | adamant | 136 |
| 6 | maroonrk | 134 |
| 7 | DNR | 133 |
| 8 | nik_exists | 131 |
| 8 | Dominater069 | 131 |
| 10 | Proof_by_QED | 130 |
|
0
This is because the two vector sets (in Base 2) are linearly convertible and there exist a reverse mapping as well. In such case, the underlying basis will remain same for both the vector space as no independent vectors are getting dissolved. |
|
0
Consider that, poss[a][0] is the number of ways to select even number of elements equal to a, and poss[a][1] is the number of odd so far. This is without considering the current input. Now, let's say we encounter a new 'a', then we can re-calculate our poss values. poss[a][0] = (earlier number of possibilities, ignoring current 'a') + (earlier number of poss of selecting odd elements and adding current 'a' into them to mqke overall even). Thus, poss[a][0] = poss[a][0] + poss[a][1] Similarly, poss[a][1] is updated. |
|
0
Hey thanks for your reply! and yes I do understand how the second solution works. |
|
0
How to solve Div2E/Div1B recursively? or how to find the length of the first block? |
|
0
Hi can you please provide a proof for your claim? Thanks! |
|
0
What is the proof for Div1B? Let's say the answer to the problem is not $$$0$$$. Then how to prove that in the case $$$(3)$$$ while choosing any of the $$$a_{i-1}$$$ or $$$a_{i+1}$$$ will always lead to the solution in the end rather than ending up in a contradiction later on. |
|
0
Also check SRM 518 1000 for how to use FWT. http://apps.topcoder.com/wiki/display/tc/SRM+518 This link is not working anymore, if possible someone can provide a working link? |
|
0
Div2 B can also be solved with bitsets |
|
0
Try using fast i/o :- ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); |
|
+1
Yes, they are identical. |
|
0
Check out if you have used "long long int" instead of "int". I also got WA at test case 4, and this helped me :) |
|
0
Can someone explain Div1 E? |
|
0
Any updates regarding how to solve this? |
|
0
Hey can someone tell me where I am wrong...this code is giving wrong answer on 17th test case... Problem B |
| Name |
|---|


