5 条题解

  • 1
    @ 2025-9-17 21:49:46
    #include<iostream>
    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-2-16 10:18:05

      依葫芦画瓢,单词别打错就行

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

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

        • 0
          @ 2025-10-7 18:57:04
          #include <iostream>
          using namespace std;
          int main(){
          	int a;
          	cin>>a;
          	if(a>0){
          		cout<<"positive";
          	}else if(a<0){
          		cout<<"negative";
          	}else{
          		cout<<"zero";
          	}
          	return 0;
          }
          
          
          
          • 0
            @ 2024-12-11 18:30:58

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

            • 1

            信息

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