| 记录编号 | 21988 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 502.长路上的灯 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.071 s | ||
| 提交时间 | 2010-11-16 14:40:18 | 内存使用 | 0.25 MiB | ||
#include<cstdio>
using namespace std;
int main()
{
freopen("light.in","r",stdin);
freopen("light.out","w",stdout);
double x,a=0;
int n,i,j,t;
long long y=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%lf%d",&x,&t);
a=0;
for(j=1;j<=t;j++)
{
a+=x;
y^=int(a);
}
}
i=0;
printf("%lld",y);
return 0;
}