結果

問題 No.419 直角三角形
ユーザー sekihankamibanzsekihankamibanz
提出日時 2018-10-28 10:46:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 146 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 77,888 KB
最終ジャッジ日時 2024-04-29 22:23:06
合計ジャッジ時間 12,682 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 484 ms
44,416 KB
testcase_01 AC 483 ms
44,172 KB
testcase_02 AC 479 ms
44,040 KB
testcase_03 AC 477 ms
44,288 KB
testcase_04 AC 477 ms
44,016 KB
testcase_05 AC 476 ms
43,908 KB
testcase_06 AC 484 ms
44,032 KB
testcase_07 AC 492 ms
44,300 KB
testcase_08 WA -
testcase_09 AC 487 ms
43,892 KB
testcase_10 AC 487 ms
44,420 KB
testcase_11 AC 492 ms
43,916 KB
testcase_12 WA -
testcase_13 AC 482 ms
44,172 KB
testcase_14 AC 486 ms
44,296 KB
testcase_15 AC 484 ms
44,276 KB
testcase_16 AC 485 ms
43,892 KB
testcase_17 AC 491 ms
44,148 KB
testcase_18 AC 495 ms
43,892 KB
testcase_19 AC 488 ms
44,168 KB
testcase_20 AC 494 ms
44,152 KB
testcase_21 AC 498 ms
43,900 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np


a, b = [int(x) for x in input().split(' ')]
if b > a:
    a, b = b, a

c = np.sqrt(np.array([a ** 2 - b ** 2]))

print(c[0])
0