#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语言代码)浏览:820 |
三角形 (C语言代码)浏览:903 |
Hello, world! (C语言代码)浏览:714 |
A+B for Input-Output Practice (III) (C语言代码)浏览:564 |
星期判断机 (C语言代码)浏览:859 |
模拟计算器 (C++代码)浏览:800 |
字符逆序 (C语言代码)浏览:612 |
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)浏览:663 |
C语言程序设计教程(第三版)课后习题9.6 (C语言代码)浏览:553 |
C语言程序设计教程(第三版)课后习题10.7 (C语言代码)浏览:1220 |