Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- int A, B, C, A1, B1, C1;
- scanf("%d %d %d", &A, &B, &C);
- A1=pow(A,2); B1=pow(B,2); C1=pow(C,2);
- if((A<0 || A>pow(10,4)) || (B<0 || B>pow(10,4)) || (C<0 || C>pow(10,4))) return 0;
- if((A<B+C && A>B-C) && (B<A+C && B>A-C) && (C<A+B && C>B-A)) {
- if((A1==B1+C1) || (B1==A1+C1) || (C1==A1+B1)) printf("r");
- else if(((B1 + C1 - A1)/2*B*C) || ((A1 + C1 - B1)/2*A*C) || ((A1 + B1 - C1)/2*A*B) < 0) printf("o");
- else printf("a"); }
- else printf("n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement