编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#25316 #1138. ddd和鹦鹉 Wrong Answer 0 24 ms 380 K C / 1.1 K 呵呵 2020-04-25 18:40:31
显示原始代码
#include <stdio.h>
#include <math.h>
float fun(int a, int b, int c, int d, int e, int f, int k, int z);
int main() {
    int a, b, c, d, e, f;
    scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
    int x, y, k, z;
    float l, j;
    l = (3 * a + e + 2 * c) / 6;
    j = (3 * b + f + 2 * d) / 6;
    x = (int)l;
    y = (int)j;
    // printf("%d %d", x, y);
    k = x + 1;
    z = y + 1;
    float s1, s2, s3, s4;
    s1 = fun(a, b, c, d, e, f, x, y);
    s2 = fun(a, b, c, d, e, f, k, y);
    s3 = fun(a, b, c, d, e, f, x, z);
    s4 = fun(a, b, c, d, e, f, k, z);
    // printf("%d %d %d %d", s1, s2, s3, s4);
    if (s1 <= s2 && s1 <= s3 && s1 <= s4) {
        printf("%d %d", x, y);
    }
    if (s2 <= s1 && s2 <= s3 && s2 <= s4) {
        printf("%d %d", k, y);
    }
    if (s3 <= s2 && s3 <= s1 && s3 <= s4) {
        printf("%d %d", x, z);
    }
    if (s4 <= s2 && s4 <= s3 && s4 <= s1) {
        printf("%d %d", k, z);
    }
    return 0;
}

float fun(int a, int b, int c, int d, int e, int f, int k, int z) {
    float s;
    s = sqrt(3 * ((k - a) * (k - a)) + 3 * ((z - b) * (z - b))) +
        sqrt(2 * ((k - c) * (k - c)) + 2 * ((z - d) * (z - d))) + sqrt((k - e) * (k - e) + (z - f) * (z - f));
    return s;
}
子任务 #1
Wrong Answer
得分:0
测试点 #1
Wrong Answer
得分:0
用时:2 ms
内存:256 KiB

输入文件(1.in

-211 -888 -552 114 -1000 759

答案文件(1.out

-211 -888

用户输出

-456 -278

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(2.in

900 570 -119 902 -15 327

答案文件(2.out

900 570

用户输出

407 640

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(3.in

143 999 -171 -662 696 691

答案文件(3.out

143 999

用户输出

131 395

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(4.in

-498 -472 -789 470 701 656

答案文件(4.out

-498 -472

用户输出

-395 30

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(5.in

356 25 218 610 -269 875

答案文件(5.out

356 25

用户输出

206 362

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(6.in

408 403 453 -659 -405 -338

答案文件(6.out

408 403

用户输出

287 -74

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(7.in

418 -178 954 -328 -600 743

答案文件(7.out

418 -178

用户输出

428 -74

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(8.in

-188 -598 684 -6 343 -341

答案文件(8.out

-188 -598

用户输出

192 -357

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(9.in

-295 -813 85 299 -431 323

答案文件(9.out

-295 -813

用户输出

-191 -252

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(10.in

549 247 564 -263 -74 75

答案文件(10.out

549 247

用户输出

451 49

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0