結果

問題 No.419 直角三角形
ユーザー dangodango
提出日時 2023-06-15 21:46:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 65 ms / 1,000 ms
コード長 93 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,328 KB
実行使用メモリ 72,096 KB
最終ジャッジ日時 2023-09-06 00:21:47
合計ジャッジ時間 3,396 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,916 KB
testcase_01 AC 64 ms
71,696 KB
testcase_02 AC 63 ms
71,876 KB
testcase_03 AC 62 ms
71,956 KB
testcase_04 AC 62 ms
71,968 KB
testcase_05 AC 62 ms
71,756 KB
testcase_06 AC 64 ms
72,000 KB
testcase_07 AC 62 ms
71,536 KB
testcase_08 AC 62 ms
71,696 KB
testcase_09 AC 65 ms
72,052 KB
testcase_10 AC 65 ms
71,832 KB
testcase_11 AC 60 ms
71,984 KB
testcase_12 AC 60 ms
71,780 KB
testcase_13 AC 61 ms
71,536 KB
testcase_14 AC 61 ms
71,484 KB
testcase_15 AC 63 ms
71,844 KB
testcase_16 AC 61 ms
71,656 KB
testcase_17 AC 60 ms
71,712 KB
testcase_18 AC 61 ms
71,892 KB
testcase_19 AC 60 ms
71,664 KB
testcase_20 AC 60 ms
72,096 KB
testcase_21 AC 61 ms
72,084 KB
testcase_22 AC 62 ms
71,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int,input().split())
print(abs(A ** 2 + (B ** 2 if A == B else -(B ** 2))) ** 0.5)
0