| 记录编号 | 249441 | 评测结果 | AAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 452.Nim游戏! | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | Pascal | 运行时间 | 0.045 s | ||
| 提交时间 | 2016-04-12 19:04:41 | 内存使用 | 0.17 MiB | ||
program zht;
var
i,t,n,p,s,j:longint;
begin
assign(input,'nim!.in');
assign(output,'nim!.out');
reset(input);
rewrite(output);
readln(t);
for i:=1 to t do
begin
readln(n);
read(s);
for j:=2 to n do
begin
read(p);
s:=s xor p;
end;
if s=0 then writeln('No') else writeln('Yes');
end;
close(input);
close(output);
end.