Submission #2094627


Source Code Expand

#include<bits/stdc++.h>
using namespace std;

int x, X, y, Y, z, Z;
double a, b, c, A, B;

int main(){
    scanf("%lld%lld%lld%lld%lld%lld", &x, &X, &y, &Y, &z, &Z);
    y -= x;
    z -= x;
    Y -= X;
    Z -= X;
    a = sqrt(z * z + Z * Z);
    b = sqrt(Y * Y + y * y);
    c = sqrt((z - y) * (z - y) + (Z - Y) * (Z - Y));
    if(a < b)swap(a, b);
    if(a < c)swap(a, c);
    A = sqrt(2 * ((z * z + Z * Z) * (Y * Y + y * y) + ((z - y) * (z - y) + (Z - Y) * (Z - Y)) * (z * z + Z * Z) + (Y * Y + y * y) * ((z - y) * (z - y) + (Z - Y) * (Z - Y))) - ((z * z + Z * Z) * (z * z + Z * Z) + (Y * Y + y * y) * (Y * Y + y * y) + ((z - y) * (z - y) + (Z - Y) * (Z - Y)) * ((z - y) * (z - y) + (Z - Y) * (Z - Y))));
    printf("%.12f", a * A / (2 * (a * (a + b + c) + A)));
    return 0;
}

Submission Info

Submission Time
Task B - Inscribed Bicycle
User MMNMM
Language C++14 (GCC 5.4.1)
Score 0
Code Size 801 Byte
Status WA
Exec Time 1 ms
Memory 256 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:8:61: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=]
     scanf("%lld%lld%lld%lld%lld%lld", &x, &X, &y, &Y, &z, &Z);
                                                             ^
./Main.cpp:8:61: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int*’ [-Wformat=]
./Main.cpp:8:61: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 4 has type ‘int*’ [-Wformat=]
./Main.cpp:8:61: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 5 has type ‘int*’ [-Wformat=]
./Main.cpp:8:61: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 6 has type ‘int*’ [-Wformat=]
./Main.cpp:8:61: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 7 has type ‘int*’ [-Wformat=]
./Main.cpp:8:62: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attrib...

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 500
Status
WA × 2
WA × 18
Set Name Test Cases
Sample example0.txt, example1.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, example0.txt, example1.txt
Case Name Status Exec Time Memory
000.txt WA 1 ms 256 KB
001.txt WA 1 ms 256 KB
002.txt WA 1 ms 256 KB
003.txt WA 1 ms 256 KB
004.txt WA 1 ms 256 KB
005.txt WA 1 ms 256 KB
006.txt WA 1 ms 256 KB
007.txt WA 1 ms 256 KB
008.txt WA 1 ms 256 KB
009.txt WA 1 ms 256 KB
010.txt WA 1 ms 256 KB
011.txt WA 1 ms 256 KB
012.txt WA 1 ms 256 KB
013.txt WA 1 ms 256 KB
014.txt WA 1 ms 256 KB
015.txt WA 1 ms 256 KB
example0.txt WA 1 ms 256 KB
example1.txt WA 1 ms 256 KB