5 条题解

  • 1
    @ 2025-3-11 14:37:01

    #include <bits/stdc++.h>

    using namespace std;

    int main() { int x,y; cin>>x>>y; if (x<=2 and x>=-2 and y>=-2 and y<=2) { cout <<"True"; } else { cout <<"False"; } return 0; }

    • 1
      @ 2025-3-5 13:04:38

      import math x,y=map(float,input().split()) if math.fabs(x)<=2 and math.fabs(y)<=2: print('True') else: print('False')

      • 0
        @ 2025-3-4 12:23:22
        a,b=map(float,input().split())
        if a>=-2 and a<=2 and b>=-2 and b<=2:
            print("True")
        else:
            print("False")
        
        • 0
          @ 2025-3-3 11:42:19

          #include <bits/stdc++.h>

          using namespace std;

          int main() { double x, y; cin >> x >> y;

          if (x <= 2 && x >= -2 && y <= 2 && y >= -2){
              cout << "True";
          }else{
              cout << "False";
          }
          
          return 0;
          

          }

          • -1
            @ 2025-2-24 22:53:45

            x, y = map(float, input().split()) if -2 <= x <= 2 and -2 <= y <= 2: print("True") else: print("False")

            • 1

            信息

            ID
            46
            时间
            1000ms
            内存
            128MiB
            难度
            4
            标签
            递交数
            658
            已通过
            314
            上传者