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

Re:求助:这个程序哪里出问题拉?

Posted by plan288 at 2006-09-17 16:57:21 on Problem 1005
In Reply To:求助:这个程序哪里出问题拉? Posted by:Raycmond at 2005-11-27 13:22:16
> #include<stdio.h>
> #include<math.h>
> void main(){
> 	float x,y;
> 	int year,u,t,k=1,s[1000];
> 	scanf("%d",&u);
> 	for(t=1;t<=u;t++){
>         scanf("%f%f",&x,&y);
> 		year=(int)ceil((x*x+y*y)*3.1416/100);
> 	    s[t]=year;	
> 	}
> 	for(;k<=t-1;k++)printf("property %d:This property will begin eroding in year %d.\n",k,s[k]);
>     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