結果
| 問題 |
No.419 直角三角形
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-17 04:37:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 259 bytes |
| コンパイル時間 | 96 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-18 07:35:00 |
| 合計ジャッジ時間 | 1,507 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 3 |
ソースコード
from sys import stdin, stdout
def main():
AB = list(map(int, input().split()))
AB.sort()
case1 = (AB[0] ** 2 + AB[1] ** 2) ** 0.5
case2 = (AB[1] ** 2 - AB[0] ** 2) ** 0.5
print(min(case1, case2))
input = lambda: stdin.readline()
main()