HDU 1849 —— Rabbit and Grass

原题:http://acm.hdu.edu.cn/showproblem.php?pid=1849php 思路:以两个棋子为例,若是当前它们在不一样的位置,那么先手只须要将两个棋子变成在同一个位置,就能获胜,与Nim博弈相似;ios #include<iostream> using namespace std; int m; int main(){ while(cin>>m){
相关文章
相关标签/搜索