| ||||||||||
| 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 | |||||||||
计算每个位置的nim 从右边开始数的分别是 0 1 2 4 7 8 11 。。。。。。(根据nim定义计算,这里预处理O(n^3) 然后计算出来总的nim值=(每堆的石头数%2)*该堆的nim值In Reply To:回学校的车上无聊,推了个I题的结论,请现场AC了的大牛指教.... Posted by:RoBa at 2006-11-12 19:25:40 > 跟除最后一堆外的奇数堆个数模4有关...? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator