結果

問題 No.419 直角三角形
ユーザー zaki_chemtechzaki_chemtech
提出日時 2020-07-11 11:45:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 136 bytes
コンパイル時間 530 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-10-12 21:02:44
合計ジャッジ時間 2,305 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

t = list(map(int,input().split()))

if t[0] == t[1]:
    print((2*t[0]**2)**0.5)
else:
    ans = max(t)**2-min(t)**2
    print(ans**0.5)
0