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 |
这题太简单了,一次就AC了#include <stdio.h> #include <math.h> int main () { int n,i,c; float a,b; while (scanf ("%d",&n)!=EOF) { for (i=1;i<=n;i++) { scanf ("%f%f",&a,&b); c=(int)(acos (-1)*(a*a+b*b)/100.0); printf ("Property %d: This property will begin eroding in year %d.\n",i,c+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