2 条题解

  • 1
    @ 2025-10-8 10:46:46

    #include<bits/stdc++.h>

    using namespace std;

    int main()

    {

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

    }

    • 1
      @ 2025-7-18 20:10:32

      #include 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

      信息

      ID
      43
      时间
      1000ms
      内存
      256MiB
      难度
      4
      标签
      递交数
      315
      已通过
      135
      上传者