1056:点和正方形的关系

#include
using namespace std;
int main(){
	int x,y;
	cin>>x>>y;
	if((x>=-1 && x<=1) && (y>=-1 && y<=1)){
		cout<<"yes"<<"\n";
	}
	else{
	    cout<<"no"<<"\n"; 
	}
		return 0;
}

你可能感兴趣的:(c++,算法,数据结构)