用户输出
0 0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#25594 | #1138. ddd和鹦鹉 | Wrong Answer | 50 | 85 ms | 304 K | C / 638 B | 经济99-刘雨泽 | 2020-05-28 18:37:39 |
//第一题
#include <stdio.h>
#include <math.h>
int main() {
int ax, ay, bx, by, cx, cy, ox, oy, x, y;
double min;
scanf("%d %d %d %d %d %d", &ax, &ay, &bx, &by, &cx, &cy);
min = 10000000;
for (ox = 0; ox <= 1000; ox++)
for (oy = 0; oy <= 1000; oy++) {
double oa, ob, oc;
oa = sqrt((ax - ox) * (ax - ox) + (oy - ay) * (oy - ay));
ob = sqrt((bx - ox) * (bx - ox) + (oy - by) * (oy - by));
oc = sqrt((cx - ox) * (cx - ox) + (oy - cy) * (oy - cy));
double temp = 3 * oa + 2 * ob + oc;
if (temp < min) {
x = ox;
y = oy;
min = temp;
}
}
printf("%d %d", x, y);
return 0;
}
用户输出
0 0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
143 999
系统信息
Exited with return code 0
用户输出
0 0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
408 403
系统信息
Exited with return code 0
用户输出
470 0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
345 0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
0 0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0