Submission #3927448


Source Code Expand

Tri=[]
x1,y1=map(int,input().split())
x2,y2=map(int,input().split())
x3,y3=map(int,input().split())
a1,a2=x2-x1,y2-y1
b1,b2=x3-x1,y3-y1
c1,c2=x3-x2,y3-y2
S=abs(a1*b2-a2*b1)/2
a=(a1**2+a2**2)**(1/2)
b=(b1**2+b2**2)**(1/2)
c=(c1**2+c2**2)**(1/2)
h=2*S/max(a,b,c)
r=S/(h+(a+b+c)/2)
print(r)

Submission Info

Submission Time
Task B - Inscribed Bicycle
User Chanyuh
Language PyPy3 (2.4.0)
Score 500
Code Size 300 Byte
Status AC
Exec Time 185 ms
Memory 38416 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 500 / 500
Status
AC × 2
AC × 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 AC 170 ms 38384 KB
001.txt AC 173 ms 38384 KB
002.txt AC 171 ms 38256 KB
003.txt AC 173 ms 38256 KB
004.txt AC 172 ms 38256 KB
005.txt AC 173 ms 38256 KB
006.txt AC 170 ms 38256 KB
007.txt AC 171 ms 38256 KB
008.txt AC 170 ms 38256 KB
009.txt AC 171 ms 38256 KB
010.txt AC 178 ms 38256 KB
011.txt AC 169 ms 38256 KB
012.txt AC 185 ms 38416 KB
013.txt AC 176 ms 38256 KB
014.txt AC 171 ms 38256 KB
015.txt AC 176 ms 38256 KB
example0.txt AC 172 ms 38256 KB
example1.txt AC 170 ms 38256 KB