2 条题解

  • 1
    @ 2023-10-22 11:29:14
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,b;
        cin>>a>>b;
        if(abs(a)<=1&&abs(b)<=1)cout<<"yes";
        else cout<<"no";
        return 0;
    }
    
    • 0
      @ 2023-10-2 15:51:04
      #include<iostream>
      #include<cstdio>
      #include<cmath>
      #include<algorithm>
      using namespace std;
      int main(){
      	double x,y;
      	cin >> x >> y;
      	bool bl1=x >= -1;
      	bool bl2=1 >= x;
      	bool bl3=y >= -1;
      	bool bl4=1 >= y;
      	if(bl1 == 1 && bl2 == 1){
      		if(bl3 == 1 && bl4 == 1){
      			cout << "yes";
      		}else{
      			cout << "no";
      		}
      	}else{
      		cout << "no";
      	}
      	return 0;
      }
      
      • 1

      信息

      ID
      6863
      时间
      1000ms
      内存
      128MiB
      难度
      1
      标签
      (无)
      递交数
      25
      已通过
      24
      上传者