Run ID:119092

提交时间:2025-05-15 16:53:36

#include <stdio.h> #include <math.h> int main() { double x, y; scanf("%lf %lf", &x, &y); // 检查是否在四个圆塔中的任意一个内 if ((pow(x-2, 2) + pow(y-2, 2) <= 1) || (pow(x+2, 2) + pow(y-2, 2) <= 1) || (pow(x-2, 2) + pow(y+2, 2) <= 1 || (pow(x+2, 2) + pow(y+2, 2) <= 1))) { printf("10.00\n"); } else { printf("0.00\n"); } return 0; }