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 IC0500510096 at 2005-11-27 12:42:49 on Problem 1005
#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;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