3 条题解

  • 2
    @ 2025-1-18 21:45:27

    #include<bits/stdc++.h> using namespace std; int n; int main(){ cin>>n; if(n>0) cout<<"positive"; if(n==0) cout<<"zero"; if(n<0) cout<<"negative"; return 0; }```

    
    
    • 1
      @ 2025-4-21 11:46:52

      #include<bits/stdc++.h> using namespace std;

      int main(){ int n; cin>>n; if(n>0){ cout<<"positive"; } else if(n==0){ cout<<"zero"; } else{ cout<<"negative"; } return 0; }

      • 1
        @ 2025-1-26 15:36:59

        #include<bits/stdc++.h> using namespace std;

        int main(){ int n; cin>>n; if(n>0) cout<<"positive"; if(n==0) cout<<"zero"; if(n<0) cout<<"negative"; return 0; }

        • 1

        信息

        ID
        40
        时间
        1000ms
        内存
        128MiB
        难度
        1
        标签
        (无)
        递交数
        95
        已通过
        66
        上传者