Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119092 | 汤奕硕 | C语言5.14 | C++ | Accepted | 0 MS | 200 KB | 445 | 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; }