結果
| 問題 |
No.419 直角三角形
|
| コンテスト | |
| ユーザー |
lllllll88938494
|
| 提出日時 | 2022-06-06 01:43:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 1,000 ms |
| コード長 | 200 bytes |
| コンパイル時間 | 191 ms |
| コンパイル使用メモリ | 82,904 KB |
| 実行使用メモリ | 52,480 KB |
| 最終ジャッジ日時 | 2024-09-21 04:30:02 |
| 合計ジャッジ時間 | 1,766 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
a,b=map(int,input().split()) t=(a**2 + b**2)**0.5 t2=(a ** 2 - b**2)**0.5 t3=(b**2-a ** 2 )**0.5 ans = [ i for i in [t,t2,t3] if type(i) != complex] if a == b:print(ans[0]) else:print(sorted(ans)[0])
lllllll88938494