1 solutions

  • 0
    @ 2025-11-5 15:44:29

    C++ :

    #include<iostream>
    using namespace std;
    
    int main(){
    	int x,y;
    	while(cin>>x>>y){
    		if(x>=-2&&x<=2){
    			if(y>=-2&&y<=2)
    				cout<<"True"<<endl;
    			else cout<<"False"<<endl;
    		}
    		else cout<<"False"<<endl;
    	}
    	return 0;
    }
    
    • 1

    Information

    ID
    17112
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By