poj2234 Matches Game
Source Code
| Problem: 2234 | User: billforum | |
| Memory: 192K | Time: 16MS | |
| Language: C++ | Result: Accepted |
- Source Code
#include <iostream> #include <cstdio> using namespace std; int main() { int n,ans=0,tmp; while(cin>>n) { ans=0; for(int i=0;i<n;i++) { cin>>tmp; ans^=tmp; } if(ans==0) printf("No\n"); else printf("Yes\n"); } return 0; }

浙公网安备 33010602011771号