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 hooeyoung at 2010-03-11 15:16:54 on Problem 1005
In Reply To:给你我的代码,你随便看看吧,也许对你有帮助。 Posted by:8888SCU at 2008-01-13 15:35:16
> #include<stdio.h>
> int main()
> {
> 	double a,b;
> 	int t,times=1;
> 	scanf("%d",&t);
> 	while(t--)
> 	{
> 		scanf("%lf%lf",&a,&b);
> 		printf("Property %d: This property will begin eroding in year %d.\n",times++,(int)(3.14159265*(a*a+b*b)/100)+1);
> 	}
> 	printf("END OF OUTPUT.\n");
> 	return 0;
> }

题意要求一次全部输完所有x和y,你这样只是一次输入就计算。

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