Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long t,i,a,b,c,d;
- while(scanf("%lld",&t)==1)
- {
- for(i=1;i<=t;i++)
- {
- scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
- if(a==b&&b==c&&c==d&&d==a)
- {
- printf("square\n");
- }
- else if((a==b&&c==d)||(a==c&&b==d)||(a==d&&b==c))
- {
- printf("rectangle\n");
- }
- else if((a+b+c)>=d&&(a+c+d)>=b&&(a+b+d)>=c&&(b+c+d)>=a)
- {
- printf("quadrangle\n");
- }
- else
- {
- printf("banana\n");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement