POJ 2234 —— Matches Game 入门水题

来源:互联网 发布:2017年网络暴力事例 编辑:程序博客网 时间:2024/06/05 02:47

原题:http://poj.org/problem?id=2234


#include<iostream>using namespace std;int m;int main(){    while(cin>>m){        int x = 0;        while(m--){            int y;            cin>>y;            x = x^y;        }        if(x == 0)  cout<<"No"<<endl;        else    cout<<"Yes"<<endl;    }    return 0;}


0 0