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.
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
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.
Название |
---|
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.