結果

問題 No.419 直角三角形
ユーザー YCescaYCesca
提出日時 2016-09-09 23:05:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 22 ms / 1,000 ms
コード長 190 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 9,444 KB
最終ジャッジ日時 2023-08-10 09:08:16
合計ジャッジ時間 1,627 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
9,444 KB
testcase_01 AC 21 ms
9,240 KB
testcase_02 AC 21 ms
9,392 KB
testcase_03 AC 20 ms
9,296 KB
testcase_04 AC 19 ms
9,388 KB
testcase_05 AC 20 ms
9,412 KB
testcase_06 AC 19 ms
9,340 KB
testcase_07 AC 19 ms
9,232 KB
testcase_08 AC 20 ms
9,376 KB
testcase_09 AC 20 ms
9,348 KB
testcase_10 AC 20 ms
9,284 KB
testcase_11 AC 21 ms
9,372 KB
testcase_12 AC 21 ms
9,392 KB
testcase_13 AC 22 ms
9,440 KB
testcase_14 AC 21 ms
9,396 KB
testcase_15 AC 20 ms
9,196 KB
testcase_16 AC 19 ms
9,288 KB
testcase_17 AC 19 ms
9,356 KB
testcase_18 AC 19 ms
9,344 KB
testcase_19 AC 19 ms
9,232 KB
testcase_20 AC 19 ms
9,216 KB
testcase_21 AC 20 ms
9,196 KB
testcase_22 AC 21 ms
9,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import *
from decimal import *
a , b = map(int, input().split())
x = [Decimal(i**(1/2)) for i in (b**2 - a**2, a**2 - b**2, a**2 + b**2) if i > 0]
print("{0:.10f}".format(min(x)) )
0