POJ 2234 —— Matches Game 入门水题
2016-12-02 12:08
357 查看
原题: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;
}
#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;
}
相关文章推荐
- POJ 2234 Matches Game 博弈论水题 Nim模型
- poj2234 Matches Game
- poj 2234 Matches Game (博弈)
- POJ 2234 Matches Game (nim博弈裸题)
- poj--2234--Matches Game(尼姆博弈)
- poj--2234--Matches Game(尼姆博弈)
- POJ 2234 Matches Game
- POJ 2234 Matches Game
- POJ 2823 Sliding Window(单调队列入门水题)
- poj 2234 Matches Game
- POJ-2234-Matches Game
- [博弈]POJ 2234 Matches Game
- POJ 2234 Matches Game 尼姆博弈
- 【poj 2234】Matches Game
- POJ 2234-Matches Game(博弈)
- POJ 2234 Matches Game(直接的NIM)
- poj-2234 Matches Game
- 【POJ】2234 Matches Game(博弈论)
- poj2234——Matches Game
- POJ 2234 Matches Game(取火柴博弈1)