| 比赛 | 20101116 | 评测结果 | AAAAAAWWAA |
|---|---|---|---|
| 题目名称 | 长路上的灯 | 最终得分 | 80 |
| 用户昵称 | 郭乾乐 | 运行时间 | 0.000 s |
| 代码语言 | C++ | 内存使用 | 0.00 MiB |
| 提交时间 | 2010-11-16 10:56:28 | ||
#include<iostream>
#include<cstdio>
using namespace std;
bool a[20000001];
int main()
{
freopen("light.in","r",stdin);
freopen("light.out","w",stdout);
float x;
int n,i,j,t;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%f%d",&x,&t);
for(j=1;j<=t;j++)
a[int(j*x)]=!a[int(j*x)];
}
i=0;
do
{
i++;
if(a[i])
{
printf("%d",i);
return 0;
}
}
while(1<2);
return 0;
}