結果

問題 No.419 直角三角形
ユーザー yumechi
提出日時 2016-09-10 02:03:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 80,512 KB
最終ジャッジ日時 2024-11-16 19:34:28
合計ジャッジ時間 3,733 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *

def solve():
    getcontext().prec = 25
    a, b = map(int, input().split())
    a, b = max(a, b), min(a, b)
    print(Decimal(Decimal(a) ** Decimal(2) - Decimal(b) ** Decimal(2)) ** Decimal(0.5))

if __name__=="__main__":
    solve()
0