5 条题解

  • 3
    @ 2025-11-30 10:15:03
    #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-12-22 16:15:32

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

      • 0
        @ 2025-12-17 20:52:10
        #include<bits/stdc++.h>
        using namespace std;
        int main(){
        	int n;
        	cin >> n;
        	if(n > 0){
        		cout << "positive";
        	}else if(n < 0){
        		cout << " negative";
        	}else{
        		cout << "zero";
        	}
        	return 0;
        }
        
        
        
        • 0
          @ 2025-12-17 20:51:44

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

          • 0
            @ 2025-12-17 20:44:08

            #include<bits/stdc++.h> using namespace std; int main() { srand(time(NULL)); cout<<rand(); return 0; }

            • 1

            信息

            ID
            6892
            时间
            1000ms
            内存
            128MiB
            难度
            1
            标签
            递交数
            76
            已通过
            29
            上传者