TOPIC

wrong answer(10%)-casos funcionam

Teste asked 1 year ago

include

int main() { int x1,x2,y1,y2; while(scanf("%d %d %d %d",&x1,&y1,&x2,&y2)!=0) { if(x1==0&&x2==0&&y1==0&&y2==0)break; else { if(x1==x2&&y1!=y2)printf("1\n"); else if(x1!=x2&&y1==y2)printf("1\n"); else if(x1==x2&&y1==y2)printf("0\n"); else { if((x1+x2)==(y1+y2))printf("1\n"); else if((x1+y1)==(x2+y2))printf("1\n"); else if((x1+y2)==(x2+y1))printf("1\n"); else printf("2\n"); } } } }

This topic was solved and cannot recieve new replies.