結果
| 問題 |
No.419 直角三角形
|
| ユーザー |
|
| 提出日時 | 2016-09-10 02:01:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 554 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 82,304 KB |
| 最終ジャッジ日時 | 2024-11-16 19:34:24 |
| 合計ジャッジ時間 | 4,228 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 3 RE * 4 |
ソースコード
from decimal import *
def solve():
getcontext().prec = 25
a, b = input().split()
a, b = max(a, b), min(a, b)
print(Decimal(Decimal(a) ** Decimal(2) - Decimal(b) ** Decimal(2)) ** Decimal(0.5))
if __name__=="__main__":
solve()