Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #define PI 3.1415926
- int main()
- {
- int T,ncase=0,ans;
- double x,y,r;
- scanf("%d",&T);
- while(T--)
- {
- scanf("%lf%lf",&x,&y);
- r=sqrt(x*x+y*y);
- ans=(int)ceil(PI*r*r/2/50);
- printf("Property %d: This property will begin eroding in year %d.\n",++ncase,ans);
- }
- printf("END OF OUTPUT.\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment