結果

問題 No.419 直角三角形
ユーザー ronpooronpoo
提出日時 2023-09-08 15:58:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 1,000 ms
コード長 127 bytes
コンパイル時間 628 ms
コンパイル使用メモリ 87,440 KB
実行使用メモリ 71,972 KB
最終ジャッジ日時 2023-09-08 15:58:21
合計ジャッジ時間 3,688 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,500 KB
testcase_01 AC 74 ms
71,688 KB
testcase_02 AC 67 ms
71,720 KB
testcase_03 AC 69 ms
71,484 KB
testcase_04 AC 68 ms
71,728 KB
testcase_05 AC 69 ms
71,956 KB
testcase_06 AC 69 ms
71,388 KB
testcase_07 AC 69 ms
71,472 KB
testcase_08 AC 69 ms
71,516 KB
testcase_09 AC 69 ms
71,516 KB
testcase_10 AC 69 ms
71,468 KB
testcase_11 AC 68 ms
71,728 KB
testcase_12 AC 68 ms
71,468 KB
testcase_13 AC 70 ms
71,668 KB
testcase_14 AC 77 ms
71,972 KB
testcase_15 AC 68 ms
71,688 KB
testcase_16 AC 68 ms
71,344 KB
testcase_17 AC 67 ms
71,788 KB
testcase_18 AC 70 ms
71,812 KB
testcase_19 AC 69 ms
71,740 KB
testcase_20 AC 68 ms
71,940 KB
testcase_21 AC 68 ms
71,388 KB
testcase_22 AC 68 ms
71,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if a == b:
    ans = a * 2**0.5
else:
    ans = (max(a, b)**2 - min(a, b)**2)**0.5
print(ans)
0