#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 人评分
C语言程序设计教程(第三版)课后习题9.8 (C语言代码)浏览:599 |
C语言程序设计教程(第三版)课后习题9.8 (C语言代码)浏览:1207 |
数组输出 (C语言代码)浏览:767 |
C语言训练-字符串正反连接 (C语言代码)浏览:622 |
C语言程序设计教程(第三版)课后习题6.1 (C语言代码)浏览:522 |
C语言程序设计教程(第三版)课后习题7.4 (C语言代码)浏览:609 |
C语言程序设计教程(第三版)课后习题1.5 (C++代码)浏览:1095 |
C语言训练-大、小写问题 (C语言代码)浏览:614 |
P1000 (C语言代码)浏览:877 |
C语言程序设计教程(第三版)课后习题10.2 (C语言代码)浏览:1466 |