【题意】
nim游戏
【输入】
多组数据,每组数据一行第一个数字表示有n堆石子,接下来n个数字表示每堆石子有多少个
【输出】
对于每组数据,若为必胜局面输出'Yes'否则输出'No'
nim游戏,把每堆石子的个数异或起来若为0则必败,否则必胜
program poj2234; var n,i,k:longint; begin while not seekeof do begin read(n); k:=0; while n>0 do begin dec(n); read(i); k:=k xor i; end; if k=0 then writeln('No') else writeln('Yes'); end; end.