PersonalCorpus 版 (精华区)
41696 2002-10-15 02:05:17 Accepted
1049 C++ 00:00.00 380K Big Guava
int main()
{
#ifndef ONLINE_JUDGE
freopen("c:\\0acm\\zju\\i1049","r",stdin);
freopen("c:\\0acm\\zju\\o1049","w",stdout);
#endif
int i,j,k,n,t;
double x,y;
scanf("%d\n",&n);
for (t=1;t<=n;t++) {
scanf("%lf%lf\n",&x,&y);
printf("Property %d: This property will begin eroding in year
%d.\n",
t,(int)ceil((x*x+y*y)*1.57079632679489661923/50));
}
printf("END OF OUTPUT.\n");
}
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.885毫秒