3 solutions

  • 1
    @ 2026-3-8 14:02:33
    #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;
    }
    复制的是gay
    
    • 0
      @ 2026-6-6 16:30:51
      #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
        @ 2025-8-18 14:06:31
        #include<bits/stdc++.h>
        using namespace std;
        int n;
        int main(){
        	cin>>n;
        	if(n>0){
        		cout<<"positive";
        	}else if(n==0){
        		cout<<"zero";
        	}else{
        		cout<<"negative"; 
        	}
        	
        	
        	
        	return 0;
        }
        
        • 1

        Information

        ID
        911
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        1
        Tags
        (None)
        # Submissions
        331
        Accepted
        124
        Uploaded By