#include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; if(x>0&&y>0) cout<<"1"; else if(x<0&&y>0) cout<<"2"; else if(x<0&&y<0) cout<<"3"; else if(x>0&&y<0) cout<<"4"; return 0; }

1 条评论

  • @ 2024-12-21 20:02:38

    #include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; if(x>0&&y>0) cout<<"1"; else if(x<0&&y>0) cout<<"2"; else if(x<0&&y<0) cout<<"3"; else if(x>0&&y<0) cout<<"4"; return 0; }

    • 1

    信息

    ID
    24
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    递交数
    23
    已通过
    12
    上传者