不正经题解
2026-01-26 18:50:53
发布于:上海
4阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
//开头
int main(){
int x,y;//定义x和y
string a="yes";//偷个懒
cin>>x>>y;//输入x和y
//各种情况
if(x==1&&y==1) cout<<a;
else if(x==1 && y==-1) cout<<a;
else if(x==-1 && y==-1) cout<<a;
else if(x==0 && y==0) cout<<a;
else if(x==-1 && y==1) cout<<a;
else cout<<"no";
return 0;
}
这里空空如也




有帮助,赞一个