Submission #3586743


Source Code Expand

import math
table=[[int(i) for i in input().split()] for i in range(3)]
r=[0]*3
for i in range(3):
    a=(table[i%3][0]-table[(i+1)%3][0])**2
    b=(table[i%3][1]-table[(i+1)%3][1])**2
    r[i]=math.sqrt(a+b)
s=sum(r)/2
t=s
for i in range(3):
    t*=(s-r[i])
t=math.sqrt(t)
x=t*2/(sum(r))
u=max(r)
print(x*u/(2*x+u))

Submission Info

Submission Time
Task B - Inscribed Bicycle
User okumura
Language PyPy3 (2.4.0)
Score 500
Code Size 330 Byte
Status AC
Exec Time 178 ms
Memory 38384 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 178 ms 38256 KB
002.txt AC 168 ms 38256 KB
003.txt AC 170 ms 38256 KB
004.txt AC 171 ms 38256 KB
005.txt AC 167 ms 38256 KB
006.txt AC 173 ms 38384 KB
007.txt AC 175 ms 38256 KB
008.txt AC 173 ms 38256 KB
009.txt AC 174 ms 38256 KB
010.txt AC 169 ms 38256 KB
011.txt AC 172 ms 38256 KB
012.txt AC 171 ms 38256 KB
013.txt AC 169 ms 38256 KB
014.txt AC 171 ms 38384 KB
015.txt AC 170 ms 38256 KB
example0.txt AC 173 ms 38256 KB
example1.txt AC 170 ms 38256 KB