結果

問題 No.419 直角三角形
ユーザー zaki_chemtechzaki_chemtech
提出日時 2020-07-11 11:45:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 1,000 ms
コード長 136 bytes
コンパイル時間 528 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 71,876 KB
最終ジャッジ日時 2023-08-02 22:48:12
合計ジャッジ時間 3,555 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,492 KB
testcase_01 AC 74 ms
71,556 KB
testcase_02 AC 74 ms
71,592 KB
testcase_03 AC 74 ms
71,720 KB
testcase_04 AC 76 ms
71,752 KB
testcase_05 AC 75 ms
71,736 KB
testcase_06 AC 73 ms
71,684 KB
testcase_07 AC 75 ms
71,656 KB
testcase_08 AC 76 ms
71,840 KB
testcase_09 AC 76 ms
71,788 KB
testcase_10 AC 76 ms
71,832 KB
testcase_11 AC 75 ms
71,740 KB
testcase_12 AC 76 ms
71,688 KB
testcase_13 AC 76 ms
71,788 KB
testcase_14 AC 76 ms
71,640 KB
testcase_15 AC 75 ms
71,836 KB
testcase_16 AC 75 ms
71,596 KB
testcase_17 AC 74 ms
71,788 KB
testcase_18 AC 75 ms
71,664 KB
testcase_19 AC 75 ms
71,776 KB
testcase_20 AC 74 ms
71,820 KB
testcase_21 AC 76 ms
71,752 KB
testcase_22 AC 75 ms
71,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = list(map(int,input().split()))

if t[0] == t[1]:
    print((2*t[0]**2)**0.5)
else:
    ans = max(t)**2-min(t)**2
    print(ans**0.5)
0