結果
| 問題 | No.419 直角三角形 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-17 13:45:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 1,000 ms |
| + 654µs | |
| コード長 | 272 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 96,244 KB |
| 実行使用メモリ | 84,096 KB |
| 最終ジャッジ日時 | 2026-07-29 15:32:24 |
| 合計ジャッジ時間 | 3,996 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline
a,b = map(int,input().split())
a,b = min(a,b),max(a,b)
if a==b:
print(math.sqrt(a**2+b**2))
else:
print(math.sqrt(b**2-a**2))