5 条题解
- 1
信息
- ID
- 46
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 658
- 已通过
- 314
- 上传者
import math x,y=map(float,input().split()) if math.fabs(x)<=2 and math.fabs(y)<=2: print('True') else: print('False')
a,b=map(float,input().split())
if a>=-2 and a<=2 and b>=-2 and b<=2:
print("True")
else:
print("False")
#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;
}
x, y = map(float, input().split()) if -2 <= x <= 2 and -2 <= y <= 2: print("True") else: print("False")