Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- int main()
- {
- double x,y,r,a;
- scanf("%lf",&r);
- scanf("%lf%lf",&x,&y);
- if (fabs(x*x+y*y-r*r/2)<1e-6)
- printf("Yes");
- else
- printf("No");
- return 0;
- }
- #include <stdio.h>
- #include <math.h>
- int main() { double x,y,e=1,c; scanf("%lf%lf",&x,&y); c=pow(x,2)+pow(y,2); c=sqrt(c); e=fabs(c-e); printf("%lf", e); return 0;
- }
- #include <stdio.h>
- #define _USE_MATH_DEFINES
- #include <math.h>
- int main() { double x,y,z,d; scanf("%lf%lf",&x,&y); z=sqrt(y); d=2*sqrt(x/M_PI); if(d>z)printf("No"); else printf ("Yes"); return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement