| 比赛 | 20101116 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 长路上的灯 | 最终得分 | 100 |
| 用户昵称 | reamb | 运行时间 | 0.000 s |
| 代码语言 | Pascal | 内存使用 | 0.00 MiB |
| 提交时间 | 2010-11-16 10:58:06 | ||
var
m:int64;
i,a1,t,j,k,n:longint;
a:real;
begin
assign(input,'light.in'); reset(input);
assign(output,'light.out'); rewrite(output);
readln(n);
m:=0;
for i:=1 to n do
begin
readln(a,t);
for j:=1 to t do
begin
a1:=trunc(j*a);
m:=m xor a1;
end;
end;
writeln(m);
close(input); close(output);
end.