比赛 |
东方版NOIP模拟赛 |
评测结果 |
AAWWWWWWWA |
题目名称 |
Yukari |
最终得分 |
30 |
用户昵称 |
Malvo |
运行时间 |
3.416 s |
代码语言 |
C++ |
内存使用 |
0.33 MiB |
提交时间 |
2015-10-28 21:56:24 |
显示代码纯文本
#include<cstdio>
#include<cmath>
int k[10000],p;
double t;
int main()
{
freopen("camera.in","r",stdin);
freopen("camera.out","w",stdout);
double x1,y1,x2,y2,fx,fy,x,y,u,v,ans;
int max=0,i,n,ans2;
scanf("%d %lf %lf %lf %lf",&n,&x1,&y1,&x2,&y2);
for(i=1;i<=n;i++)
{
scanf("%lf %lf %lf %lf",&x,&y,&u,&v);
t=0;
while(t<=1000)
{
if(x>=x1&&y>=y1&&x<=x2&&y<=y2)
{
p=t*10;
k[p]++;
if(k[p]>max){max=k[p];ans=t;}
}
x+=u/2;
y+=v/2;
t=t+0.5;
}
}
ans2=ans;
printf("%d",ans2);
return 0;
}