2 条题解

  • 0
    @ 2025-1-16 20:56:52
    #include<bits/stdc++.h>
    int main(){
    	int a,b;
    	std::cin>>a>>b;
    	if(a<=1&&a>=-1&&b<=1&&b>=-1)cout<<"yes";
    	else cout<<"no";
    	return 0;
    }
    
    • 0
      @ 2025-1-16 15:04:15
      #include<bits/stdc++.h>
      using namespace std;
      
      int main(){
          int x,y;
          cin>>x>>y;
          if (y>=-1 && y<=1 && x>=-1 && x<=1)cout<<"yes";
          else cout<<"no";
      	return 0;
      }
      
      • 1

      信息

      ID
      47
      时间
      1000ms
      内存
      128MiB
      难度
      3
      标签
      (无)
      递交数
      93
      已通过
      52
      上传者