50 条题解

  • 2
    @ 2024-2-23 9:34:41
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int n;
        cin>>n;
        if(n==0){
        cout<<"zero";
    }
        if(n>0){
        cout<<"positive";
    }
        if(n<0){
        cout<<"negative";
    }
    return 0;
    }
    
    • 1
      @ 2024-2-23 10:47:29
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
          int n;
          cin>>n;
          if(n==0){
          cout<<"zero";
      }
          if(n>0){
          cout<<"positive";
      }
          if(n<0){
          cout<<"negative";
      }
      return 0;
      }
      
      • 1
        @ 2024-2-23 10:47:26
        #include<bits/stdc++.h>
        using namespace std;
        int main(){
            int n;
            cin>>n;
            if(n==0){
            cout<<"zero";
        }
            if(n>0){
            cout<<"positive";
        }
            if(n<0){
            cout<<"negative";
        }
        return 0;
        }
        
        • 1
          @ 2024-2-23 10:47:08
          #include<bits/stdc++.h>
          using namespace std;
          int main(){
              int n;
              cin>>n;
              if(n==0){
              cout<<"zero";
          }
              if(n>0){
              cout<<"positive";
          }
              if(n<0){
              cout<<"negative";
          }
          return 0;
          }
          
          • 1
            @ 2024-2-23 9:52:30

            #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; }

            • 0
              @ 2024-12-19 17:29:13

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

              • 0
                @ 2024-12-19 17:09:57

                #include using namespace std; int main(){ double n; cin>>n; if(n<0) cout<<"negative"; if(n==0) cout<<"zero"; if(n>0) cout<<"positive"; return 0; }

                • 0
                  @ 2024-2-23 10:47:06
                  #include<bits/stdc++.h>
                  using namespace std;
                  int main(){
                      int n;
                      cin>>n;
                      if(n==0){
                      cout<<"zero";
                  }
                      if(n>0){
                      cout<<"positive";
                  }
                      if(n<0){
                      cout<<"negative";
                  }
                  return 0;
                  }
                  
                  • 0
                    @ 2024-2-23 10:33:53

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

                    • 0
                      @ 2024-2-23 10:33:35

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

                      • 0
                        @ 2024-2-23 10:33:26

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

                        • 0
                          @ 2024-2-23 10:33:26

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

                          • 0
                            @ 2024-2-23 10:33:26

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

                            • 0
                              @ 2024-2-23 10:33:26

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

                              • 0
                                @ 2024-2-23 10:33:26

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

                                • 0
                                  @ 2024-2-23 10:33:26

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

                                  • 0
                                    @ 2024-2-23 10:33:26

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

                                    • 0
                                      @ 2024-2-23 10:33:26

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

                                      • 0
                                        @ 2024-2-23 10:33:26

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

                                        • 0
                                          @ 2024-2-23 10:33:26

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

                                          信息

                                          ID
                                          85
                                          时间
                                          1000ms
                                          内存
                                          128MiB
                                          难度
                                          3
                                          标签
                                          (无)
                                          递交数
                                          682
                                          已通过
                                          351
                                          上传者