結果
| 問題 |
No.419 直角三角形
|
| コンテスト | |
| ユーザー |
terune
|
| 提出日時 | 2016-09-10 00:42:05 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 264 bytes |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-16 19:06:51 |
| 合計ジャッジ時間 | 1,479 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 20 |
ソースコード
def solve():
import math
a, b = list(map(int, input().split()))
L = max(a,b)
S = min(a,b)
if S == L:
bow = L**2 - S**2
print( math.sqrt(bow) )
else :
bow = L**2 + S**2
print( math.sqrt(bow) )
solve()
terune