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 2009354533 at 2011-03-29 22:47:23 on Problem 1005
#include<stdio.h>
#define max 500
int main()
{
	double a[max],b[max];
	int t,times=1,i;
	scanf("%d",&t);
	for(i=0;i<t;i++)
	{
		scanf("%lf%lf",&a[i],&b[i]);
    }
	for(i=0;i<t;i++)
	{
		printf("Property %d: This property will begin eroding in year %d.\n",i+1,(int)(3.14159265*(a[i]*a[i]+b[i]*b[i])/100)+1);
	}
	printf("END OF OUTPUT.\n");
	return 0;
}

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