結果

問題 No.1487 ぺんぎんさんかっけー
ユーザー moharan627moharan627
提出日時 2021-04-23 23:10:31
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 531 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-04 08:41:45
合計ジャッジ時間 2,149 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.setrecursionlimit(10 ** 6)
def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LC(): return list(input())
def IC(): return [int(c) for c in input()]
def MI(): return map(int, sys.stdin.readline().split())
INF = float('inf')
MOD = 10**9 + 7
def solve():
    A,B,C = MI()
    s = (A+B+C)/2
    import math
    S = math.sqrt(s*(s-A)*(s-B)*(s-C))
    Tmp = (C*(A/2)*2*S*(B/2) + B*(C/2)*2*S*(A/2) + A*(B/2)*2*S*(C/2))/(2*A*B*C)
    print(S-Tmp)
    return
solve()
0