22 条题解

  • -5
    @ 2023-3-15 20:18:56
    #include<iostream>
    using namespace std;
    
    int main()
    {
    int a,b;
    
    cin>>a>>b;
    
    if(0<=a+b&&a+b<=3)
    {
    
    	cout<<"YES";
    
    }
        else{
    
    	if(a+b>=4) {
    
    
    	cout<<"NO";	
    
    	}
    	else
    	{
    		if(a+b<0) 
    		cout<<"negative";
            return 0; 
    	}	
    
    }
    }
    
    • -5
      @ 2021-10-19 12:47:28

      a,b=map(int,input().split()) if a+b>=0 and a+b<=3: print("YES") if a+b>=4: print("NO") if a+b<0: print("negative")

      信息

      ID
      886
      时间
      1000ms
      内存
      128MiB
      难度
      4
      标签
      递交数
      839
      已通过
      365
      上传者