标签:
Nim游戏
#include <stdio.h> int main() { int m,n,a; while(scanf("%d", &m), m) { n = 0; while(m-- && scanf("%d", &a)) n ^= a; puts(n ? "Rabbit Win!" : "Grass Win!"); } return 0; }
hdu1849
原文地址:http://www.cnblogs.com/fightfor/p/4245954.html