Hi
If you know Chinese, could you be very kind and translate the part from "1003 Revenge of Nim II" from http://bestcoder.hdu.edu.cn/ ? :) Google translation is really hard to understand for me.
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 151 |
Hi
If you know Chinese, could you be very kind and translate the part from "1003 Revenge of Nim II" from http://bestcoder.hdu.edu.cn/ ? :) Google translation is really hard to understand for me.
Name |
---|
xD
I think CF should add Chinese to languages, too
//My English is not good, so the translation may not be perfect, but I think that you can understand it. 1003 Revenge of Nim II //Let's call the one who first play X, the other one Y. Nim's game's room for Y's cheat is to move some piles of objects(not all of them), Is it guarantee that X will lose? Nim's game's requirement of X will lose is XORSUM(a[i])=0. Y's goal is to find a non-empty set which XORSUM(a[i])=0. Let's think the a[i] here a line which each bit is 0 or 1. All the numbers form a matrix. The operation of this matrix is XOR. If this matrix satisfies Rank-mat=Row-Num-mat, then its any subsets' XORSum is unique, and the non-empty subset's XORSUM is not zero, or the Rank of the matrix will be smaller than RowNum. What about Rank-mat<RowNum-Mat? Then for any subsets which satisfies Rank-Submat<RowNum-Subset, the other row can get through the XOR of some of the rows of the matrix. Then there will be an subset A that XORSum(a[i]|a[i] belongs to subset A)=0.
Complexity: O(maxb^3)|maxb=log(maxa), about 40. Degree of difficulty: 2.0/5
Thank you :) The solution was unusual for me and deciphering the broken pieces from google translate was turning out to be really painful.