結果

問題 No.1487 ぺんぎんさんかっけー
ユーザー ayaoniayaoni
提出日時 2021-04-23 21:41:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 1,000 ms
コード長 767 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 86,960 KB
実行使用メモリ 72,124 KB
最終ジャッジ日時 2023-09-17 11:55:06
合計ジャッジ時間 4,626 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,812 KB
testcase_01 AC 75 ms
71,896 KB
testcase_02 AC 76 ms
72,028 KB
testcase_03 AC 76 ms
71,876 KB
testcase_04 AC 76 ms
72,056 KB
testcase_05 AC 75 ms
71,784 KB
testcase_06 AC 74 ms
72,048 KB
testcase_07 AC 75 ms
72,064 KB
testcase_08 AC 76 ms
71,696 KB
testcase_09 AC 73 ms
72,004 KB
testcase_10 AC 75 ms
72,000 KB
testcase_11 AC 73 ms
71,888 KB
testcase_12 AC 72 ms
71,964 KB
testcase_13 AC 74 ms
71,888 KB
testcase_14 AC 75 ms
71,988 KB
testcase_15 AC 75 ms
71,860 KB
testcase_16 AC 74 ms
71,636 KB
testcase_17 AC 74 ms
71,764 KB
testcase_18 AC 75 ms
71,896 KB
testcase_19 AC 72 ms
72,016 KB
testcase_20 AC 73 ms
71,908 KB
testcase_21 AC 74 ms
71,452 KB
testcase_22 AC 74 ms
71,664 KB
testcase_23 AC 76 ms
71,852 KB
testcase_24 AC 75 ms
71,444 KB
testcase_25 AC 76 ms
71,840 KB
testcase_26 AC 74 ms
71,448 KB
testcase_27 AC 75 ms
71,852 KB
testcase_28 AC 76 ms
71,812 KB
testcase_29 AC 74 ms
72,008 KB
testcase_30 AC 75 ms
72,000 KB
testcase_31 AC 75 ms
72,124 KB
testcase_32 AC 76 ms
71,892 KB
testcase_33 AC 74 ms
71,984 KB
testcase_34 AC 77 ms
72,004 KB
testcase_35 AC 75 ms
71,656 KB
testcase_36 AC 75 ms
71,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from math import sin,cos
sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


a,b,c = MI()
s = (a+b+c)/2
ans = (s*(s-a)*(s-b)*(s-c))**.5

A = (a**2+c**2-b**2)/(2*a*c)
A = (1-A**2)**.5
B = (a**2+b**2-c**2)/(2*a*b)
B = (1-B**2)**.5
C = (b**2+c**2-a**2)/(2*b*c)
C = (1-C**2)**.5

ans -= a**2*c**2*A/(8*a*c)
ans -= a**2*b**2*B/(8*a*b)
ans -= b**2*c**2*C/(8*b*c)
print(ans)
0