結果
| 問題 | No.419 直角三角形 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-10 02:03:39 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 258 bytes |
| 記録 | |
| コンパイル時間 | 328 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 85,248 KB |
| 最終ジャッジ日時 | 2026-05-12 01:17:32 |
| 合計ジャッジ時間 | 2,852 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 3 |
ソースコード
from decimal import *
def solve():
getcontext().prec = 25
a, b = map(int, 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()