結果

問題 No.419 直角三角形
ユーザー nohakai3nohakai3
提出日時 2022-11-02 10:42:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 121 bytes
コンパイル時間 1,695 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 71,496 KB
最終ジャッジ日時 2023-09-23 17:59:16
合計ジャッジ時間 3,317 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,416 KB
testcase_01 AC 72 ms
71,164 KB
testcase_02 AC 74 ms
71,208 KB
testcase_03 AC 71 ms
71,056 KB
testcase_04 AC 71 ms
71,076 KB
testcase_05 AC 72 ms
71,496 KB
testcase_06 AC 71 ms
71,384 KB
testcase_07 AC 70 ms
71,384 KB
testcase_08 WA -
testcase_09 AC 70 ms
71,312 KB
testcase_10 AC 73 ms
71,244 KB
testcase_11 AC 72 ms
71,496 KB
testcase_12 WA -
testcase_13 AC 70 ms
71,216 KB
testcase_14 AC 69 ms
71,408 KB
testcase_15 AC 71 ms
71,416 KB
testcase_16 AC 70 ms
71,164 KB
testcase_17 AC 70 ms
71,432 KB
testcase_18 AC 73 ms
71,404 KB
testcase_19 AC 71 ms
71,080 KB
testcase_20 AC 71 ms
71,164 KB
testcase_21 AC 72 ms
71,176 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt


a,b=map(int,input().split())
if a>=b:
    print(sqrt(a**2-b**2))
else:
    print(sqrt(b**2-a**2))
0