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 a598799539 at 2012-09-08 22:39:57 on Problem 1005
In Reply To:代码! Posted by:chenxuan123456789 at 2012-07-28 09:27:09
> #include <stdio.h>
> #include <math.h>
> int main()
> {
> 	double PI=3.1415926,a,b,total;
> 	int n;
> 	__int64 year;
> 	scanf("%d",&n);
> 	for(int i=1;i<=n;++i)
> 	{
> 		scanf("%lf %lf",&a,&b);
> 	    total=PI*(a*a+b*b)/2;
> 		total/=50;
> 		total+=1;
> 		year=total+1e-6;
> 		printf("Property %d: This property will begin eroding in year %I64d.\n",i,year);
> 	}
> 	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