#include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a==0&&b==0){
cout<<0;
}
if(a==0&&b==1){
cout<<-1;
}
if(a==0&&b==2){
cout<<1;
}
if(a==1&&b==0){
cout<<1;
}
if(a==1&&b==1){
cout<<0;
}
if(a==1&&b==2){
cout<<-1;
}
if(a==2&&b==0){
cout<<-1;
}
if(a==2&&b==1){
cout<<1;
}
if(a==2&&b==2){
cout<<0;
}
return 0;
}
//打一下表就好了
0.0分
0 人评分
Pascal三角 (C语言代码)浏览:1189 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:596 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:620 |
1050题解(结构体数组与结构体指针的使用)浏览:1111 |
Pascal三角 (C语言代码)浏览:653 |
整数平均值 (C语言代码)浏览:787 |
C语言程序设计教程(第三版)课后习题12.3 (C语言代码)浏览:548 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:402 |
C语言程序设计教程(第三版)课后习题11.3 (C语言代码)浏览:643 |
C语言程序设计教程(第三版)课后习题7.5 (C语言代码)浏览:555 |