5 solutions

  • 1
    @ 2026-5-10 16:05:56
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,y;
        cin>>a>>y;
        if (a<=1 and a>=-1 and y<=1 and y>=-1){
        	cout<<"yes";
    	}
    	else
    	{
    		cout<<"no";
    	}
        return 0;
    }
    
    

    Information

    ID
    37
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    313
    Accepted
    107
    Uploaded By