結果
問題 |
No.419 直角三角形
|
ユーザー |
|
提出日時 | 2023-06-17 13:45:22 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 56 ms / 1,000 ms |
コード長 | 272 bytes |
コンパイル時間 | 282 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 55,808 KB |
最終ジャッジ日時 | 2024-06-25 04:42:28 |
合計ジャッジ時間 | 2,569 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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))