結果

問題 No.419 直角三角形
ユーザー 👑 KazunKazun
提出日時 2020-08-03 22:00:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 1,000 ms
コード長 140 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 53,552 KB
最終ジャッジ日時 2024-09-13 17:33:57
合計ジャッジ時間 2,102 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt

a,b=map(int,input().split())

if a==b:
    print(sqrt(2)*a)
else:
    x,y=min(a,b),max(a,b)
    print(sqrt(y*y-x*x))
0