Submission #15563905


Source Code Expand

Copy
#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
  long double a,b,c,d,e,f;
  cin>>a>>b>>c>>d>>e>>f;
  long double A=sqrt((a-c)*(a-c)+(b-d)*(b-d)),
  B=sqrt((a-e)*(a-e)+(b-f)*(b-f)),
  C=sqrt((e-c)*(e-c)+(f-d)*(f-d)),
  s=(A+B+C)/2,
  S=sqrt(s*(s-A)*(s-B)*(s-C));
  cout<<fixed<<setprecision(16)<<S*2/(A+B+C+4*S/max({A,B,C}))<<endl;
}

Submission Info

Submission Time
Task B - Inscribed Bicycle
User shiomusubi496
Language C++ (GCC 9.2.1)
Score 500
Code Size 379 Byte
Status
Exec Time 3 ms
Memory 3720 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 example0.txt, example1.txt
All 500 / 500 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 3 ms 3532 KB
001.txt 2 ms 3600 KB
002.txt 2 ms 3588 KB
003.txt 2 ms 3532 KB
004.txt 2 ms 3644 KB
005.txt 2 ms 3584 KB
006.txt 2 ms 3720 KB
007.txt 2 ms 3708 KB
008.txt 2 ms 3632 KB
009.txt 2 ms 3648 KB
010.txt 2 ms 3656 KB
011.txt 2 ms 3648 KB
012.txt 2 ms 3648 KB
013.txt 2 ms 3592 KB
014.txt 2 ms 3640 KB
015.txt 2 ms 3636 KB
example0.txt 2 ms 3528 KB
example1.txt 2 ms 3708 KB