The trick of this problem is.. Adding 1+ coins to one pile, means nothing - you add one, then i just remove it.. so it is back to original game. So, basic Sprague-Grundy code works.
转载于:https://www.cnblogs.com/tonix/p/8125136.html
The trick of this problem is.. Adding 1+ coins to one pile, means nothing - you add one, then i just remove it.. so it is back to original game. So, basic Sprague-Grundy code works.
转载于:https://www.cnblogs.com/tonix/p/8125136.html