Submission #15563871


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)),
  r=2*S/(A+B+C);
  cout<<fixed<<setprecision(16)<<max({A,B,C})/(2.0+max({A,B,C})/r)<<endl;
}

Submission Info

Submission Time
Task B - Inscribed Bicycle
User shiomusubi496
Language C++ (GCC 9.2.1)
Score 500
Code Size 402 Byte
Status
Exec Time 7 ms
Memory 3872 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 7 ms 3728 KB
001.txt 2 ms 3620 KB
002.txt 2 ms 3668 KB
003.txt 2 ms 3680 KB
004.txt 2 ms 3736 KB
005.txt 2 ms 3744 KB
006.txt 4 ms 3868 KB
007.txt 2 ms 3684 KB
008.txt 3 ms 3692 KB
009.txt 2 ms 3588 KB
010.txt 2 ms 3680 KB
011.txt 3 ms 3588 KB
012.txt 4 ms 3736 KB
013.txt 2 ms 3680 KB
014.txt 2 ms 3808 KB
015.txt 3 ms 3872 KB
example0.txt 2 ms 3684 KB
example1.txt 2 ms 3756 KB