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 |
这代码俺试过,没过的朋友可以参考参考#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator