Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

救救我,这个为什么过不了?

Posted by 121211 at 2004-11-20 16:42:30 on Problem 1005
#include<stdio.h>
#include<math.h>
void main(){
int m[100000],n,i;
float x,y;
scanf("%d",&n);
for(i=0;i<n;i++)
{scanf("%f%f\n",&x,&y);
m[i]=(int)ceil((x*x+y*y)*3.1415926/100);}
for(i=0;i<n;i++)
{printf("Property %d:This property will begin eroding in year %d\n",
i+1,m[i]);
}
printf("END OF OUTPUT\n");
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator