top1编程
← 返回题目
题解

点和正方形的关系

1 条题解

  • 0
    @ 2026-7-28 22:45:11
    #include<iostream>
    using namespace std;
    int main ()
    {
    	int x,y;
    	cin>>x>>y;
    	if((-1<=x&&1>=x)&&(-1<=y&&1>=y)){
    		cout<<"yes";
    	}
    	else
    	cout<<"no";
    	return 0;	
    }
    
    • 1