思路:
nim博弈裸题
xor一下
//By SiriusRen #include <cstdio> using namespace std; int n,tmp,xx; int main(){ while(~scanf("%d",&n)){ tmp=0; while(n--)scanf("%d",&xx),tmp^=xx; puts(!tmp?"No":"Yes"); } }