結果

問題 No.419 直角三角形
ユーザー zaki_chemtechzaki_chemtech
提出日時 2020-07-11 11:45:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 1,000 ms
コード長 136 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 82,120 KB
実行使用メモリ 53,824 KB
最終ジャッジ日時 2024-04-20 22:37:09
合計ジャッジ時間 2,108 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,740 KB
testcase_01 AC 38 ms
52,600 KB
testcase_02 AC 39 ms
53,128 KB
testcase_03 AC 38 ms
53,364 KB
testcase_04 AC 38 ms
53,736 KB
testcase_05 AC 38 ms
52,508 KB
testcase_06 AC 38 ms
53,024 KB
testcase_07 AC 42 ms
53,012 KB
testcase_08 AC 38 ms
52,340 KB
testcase_09 AC 38 ms
52,312 KB
testcase_10 AC 39 ms
53,824 KB
testcase_11 AC 38 ms
52,852 KB
testcase_12 AC 38 ms
53,208 KB
testcase_13 AC 37 ms
53,608 KB
testcase_14 AC 39 ms
52,872 KB
testcase_15 AC 38 ms
52,744 KB
testcase_16 AC 38 ms
53,304 KB
testcase_17 AC 39 ms
52,836 KB
testcase_18 AC 38 ms
52,500 KB
testcase_19 AC 38 ms
52,796 KB
testcase_20 AC 37 ms
52,512 KB
testcase_21 AC 38 ms
52,476 KB
testcase_22 AC 37 ms
52,444 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