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