結果

問題 No.419 直角三角形
ユーザー kohei2019kohei2019
提出日時 2022-01-23 13:26:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 114 bytes
コンパイル時間 461 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 71,880 KB
最終ジャッジ日時 2023-08-19 18:09:40
合計ジャッジ時間 3,191 ms
ジャッジサーバーID
(参考情報)
judge13 / judge10
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,708 KB
testcase_01 AC 66 ms
71,856 KB
testcase_02 AC 72 ms
71,716 KB
testcase_03 AC 67 ms
71,848 KB
testcase_04 AC 68 ms
71,656 KB
testcase_05 AC 67 ms
71,660 KB
testcase_06 AC 68 ms
71,788 KB
testcase_07 AC 68 ms
71,728 KB
testcase_08 AC 69 ms
71,444 KB
testcase_09 AC 69 ms
71,628 KB
testcase_10 AC 69 ms
71,852 KB
testcase_11 AC 69 ms
71,612 KB
testcase_12 AC 68 ms
71,736 KB
testcase_13 AC 68 ms
71,636 KB
testcase_14 AC 69 ms
71,880 KB
testcase_15 AC 68 ms
71,708 KB
testcase_16 AC 68 ms
71,704 KB
testcase_17 AC 68 ms
71,636 KB
testcase_18 AC 69 ms
71,452 KB
testcase_19 AC 69 ms
71,668 KB
testcase_20 AC 68 ms
71,632 KB
testcase_21 AC 68 ms
71,816 KB
testcase_22 AC 69 ms
71,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
if a == b:
    print(a*2**(1/2))
    exit()
print((max(a,b)**2-min(a,b)**2)**(1/2))
0