結果

問題 No.419 直角三角形
ユーザー fumofumofunifumofumofuni
提出日時 2021-11-17 20:43:36
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 37 ms / 1,000 ms
コード長 124 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-24 02:18:17
合計ジャッジ時間 1,877 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B=map(float,input().split())
if A<B:
    A,B=B,A
if A != B:
    print(pow(A*A-B*B,0.5))
else :
    print(pow(A*A+B*B,0.5))
0