1 solutions

  • 0
    @ 2024-10-11 19:01:21
    #include <iostream>
    using namespace std;
    int main()
    {
        int a,b;
        cin>>a>>b;
        if(a>0&&b>0)
        {
            cout<<1;
        }
        else if(a>0&&b<0)
        {
            cout<<4;
        }
        else if(a<0&&b>0)
        {
            cout<<2;
        }
        else if(a<0&&b<0)
        {
            cout<<3;
        }
    	return 0;
    }
    
    
    • 1

    Information

    ID
    23
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    9
    Tags
    # Submissions
    21
    Accepted
    2
    Uploaded By