Search found 2 matches

by mirukukafe
Sun Oct 16, 2016 4:33 pm
Forum: Volume 126 (12600-12699)
Topic: 12646 - Zero or One
Replies: 1
Views: 1042

Re: 12646 - Zero or One

why i got WA ? #include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d", &a,&b,&c); getchar(); if((a==0 && b==0 && c==0)||(a==1 && b==1 && c==1)){ printf("*\n"); } else if((a==1 && b==0 && c==0)||(a==0 && b==1 && c==1)){ printf("A\n"); } else if((a==0 && b==1 && c==0)||(a==1 && b==0 && c==1)){ prin...
by mirukukafe
Sun Oct 16, 2016 4:31 pm
Forum: Volume 114 (11400-11499)
Topic: 11455 - Behold my quadrangle
Replies: 21
Views: 11980

Re: 11455 - Behold my quadrangle

why WA ? help :| #include<stdio.h> int main(){ int t,a,b,c,d,temp; scanf("%d", &t); getchar(); for(int i=0;i<t;i++){ scanf("%d %d %d %d", &a,&b,&c,&d); getchar(); if((a>b && a>c && a>d)){ temp=d+b+c; if(a<temp){ printf("quadrangle\n"); } else{ printf("banana\n"); } } else if(b>a && b>c && b>d){ temp...

Go to advanced search