Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:给你我的代码,你随便看看吧,也许对你有帮助。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator