| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
哦?In Reply To:计算每个位置的nim 从右边开始数的分别是 0 1 2 4 7 8 11 。。。。。。(根据nim定义计算,这里预处理O(n^3) 然后计算出来总的nim值=(每堆的石头数%2)*该堆的nim值 Posted by:TheBeet at 2006-11-15 13:43:08 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator