编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#47420 #1138. ddd和鹦鹉 Wrong Answer 0 82 ms 352 K C++ 11 (NOI) / 722 B 喵喵 2021-04-04 20:30:55
显示原始代码
#include <bits/stdc++.h>
using namespace std;
const double inf = 99999999999.0;
double cal(int x1, int y1, int x2, int y2) {
    double val;
    val = 1.0 * sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
}
int main() {
    int ax, ay, bx, by, cx, cy;
    double dis = inf;
    int ox, oy;
    cin >> ax >> ay >> bx >> by >> cx >> cy;
    int minx, miny, maxx, maxy;
    minx = min(min(ax, bx), cx);
    maxx = max(max(ax, bx), cx);
    miny = min(min(ay, by), cy);
    maxy = max(max(ay, by), cy);
    for (int i = minx; i <= maxx; i++) {
        for (int j = miny; j <= maxy; j++) {
            double ndis = 3.0 * cal(i, j, ax, ay) + 2.0 * cal(i, j, bx, by) + 1.0 * cal(i, j, cx, cy);
            //			cout<<i<<" "<<j<<endl;
            if (ndis < dis) {
                dis = ndis;
                ox = i, oy = j;
            }
        }
    }
    //	cout<<minx;
    cout << ox << " " << oy;
    return 0;
}
子任务 #1
Wrong Answer
得分:0
测试点 #1
Wrong Answer
得分:0
用时:11 ms
内存:312 KiB

输入文件(1.in

-211 -888 -552 114 -1000 759

答案文件(1.out

-211 -888

用户输出

-211 759

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #2
Wrong Answer
得分:0
用时:6 ms
内存:248 KiB

输入文件(2.in

900 570 -119 902 -15 327

答案文件(2.out

900 570

用户输出

900 902

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #3
Wrong Answer
得分:0
用时:11 ms
内存:244 KiB

输入文件(3.in

143 999 -171 -662 696 691

答案文件(3.out

143 999

用户输出

696 999

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #4
Wrong Answer
得分:0
用时:13 ms
内存:336 KiB

输入文件(4.in

-498 -472 -789 470 701 656

答案文件(4.out

-498 -472

用户输出

701 656

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #5
Wrong Answer
得分:0
用时:6 ms
内存:248 KiB

输入文件(5.in

356 25 218 610 -269 875

答案文件(5.out

356 25

用户输出

356 875

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #6
Wrong Answer
得分:0
用时:8 ms
内存:352 KiB

输入文件(6.in

408 403 453 -659 -405 -338

答案文件(6.out

408 403

用户输出

453 403

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #7
Wrong Answer
得分:0
用时:13 ms
内存:248 KiB

输入文件(7.in

418 -178 954 -328 -600 743

答案文件(7.out

418 -178

用户输出

954 743

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #8
Wrong Answer
得分:0
用时:5 ms
内存:316 KiB

输入文件(8.in

-188 -598 684 -6 343 -341

答案文件(8.out

-188 -598

用户输出

684 -6

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #9
Wrong Answer
得分:0
用时:5 ms
内存:244 KiB

输入文件(9.in

-295 -813 85 299 -431 323

答案文件(9.out

-295 -813

用户输出

85 323

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #10
Wrong Answer
得分:0
用时:4 ms
内存:220 KiB

输入文件(10.in

549 247 564 -263 -74 75

答案文件(10.out

549 247

用户输出

564 247

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0