結果

問題 No.419 直角三角形
ユーザー TatsuyaObaTatsuyaOba
提出日時 2016-12-18 13:40:59
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 10,306 ms
コンパイル使用メモリ 260,684 KB
実行使用メモリ 62,768 KB
最終ジャッジ日時 2023-09-12 09:00:21
合計ジャッジ時間 31,034 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 914 ms
62,384 KB
testcase_01 AC 928 ms
61,876 KB
testcase_02 AC 918 ms
61,912 KB
testcase_03 AC 916 ms
62,424 KB
testcase_04 AC 911 ms
62,080 KB
testcase_05 AC 925 ms
61,912 KB
testcase_06 AC 935 ms
61,904 KB
testcase_07 AC 918 ms
62,116 KB
testcase_08 WA -
testcase_09 AC 929 ms
61,856 KB
testcase_10 AC 922 ms
61,812 KB
testcase_11 AC 929 ms
61,876 KB
testcase_12 WA -
testcase_13 AC 906 ms
61,848 KB
testcase_14 AC 905 ms
62,768 KB
testcase_15 AC 910 ms
61,900 KB
testcase_16 AC 925 ms
61,932 KB
testcase_17 AC 916 ms
61,980 KB
testcase_18 AC 908 ms
61,844 KB
testcase_19 AC 908 ms
62,044 KB
testcase_20 AC 912 ms
61,860 KB
testcase_21 AC 921 ms
61,724 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import scala.io.StdIn

object Main {
  def main(args: Array[String]): Unit = {
    val in = StdIn.readLine().split(" ").map(_.toInt)
    val A = in(0)
    val B = in(1)
    println(math.sqrt(math.abs(A * A - B * B)))
  }
}
0