首页 > 其他 > 详细

POJ 2234 Matches Game(取火柴博弈1)

时间:2016-03-02 00:07:32      阅读:336      评论:0      收藏:0      [点我收藏+]

传送门

#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;

int main()
{
    int n;
    while(~scanf("%d",&n))
    {
        int a,res=0;
        for(int i=0;i<n;i++)
        {
            scanf("%d",&a);
            res^=a;
        }
        if(!res)//T
            printf("No\n");
        else printf("Yes\n");
    }
    return 0;
}

POJ 2234 Matches Game(取火柴博弈1)

原文:http://www.cnblogs.com/atmacmer/p/5233281.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!