結果

問題 No.419 直角三角形
ユーザー aRacaRac
提出日時 2016-11-23 20:49:28
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 13,327 ms
コンパイル使用メモリ 247,256 KB
実行使用メモリ 63,372 KB
最終ジャッジ日時 2023-09-12 07:32:21
合計ジャッジ時間 31,381 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 922 ms
62,044 KB
testcase_01 AC 920 ms
62,064 KB
testcase_02 AC 921 ms
61,992 KB
testcase_03 AC 919 ms
62,044 KB
testcase_04 AC 927 ms
62,220 KB
testcase_05 AC 929 ms
62,116 KB
testcase_06 AC 938 ms
62,024 KB
testcase_07 AC 928 ms
61,960 KB
testcase_08 WA -
testcase_09 AC 924 ms
61,956 KB
testcase_10 AC 924 ms
61,996 KB
testcase_11 AC 926 ms
61,844 KB
testcase_12 WA -
testcase_13 AC 911 ms
61,932 KB
testcase_14 AC 926 ms
62,080 KB
testcase_15 AC 922 ms
63,372 KB
testcase_16 AC 929 ms
61,936 KB
testcase_17 AC 922 ms
61,896 KB
testcase_18 AC 923 ms
61,960 KB
testcase_19 AC 929 ms
62,056 KB
testcase_20 AC 928 ms
63,328 KB
testcase_21 AC 931 ms
62,076 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

object Main {
    def solve(n: Int, m: Int) = math.sqrt(math.abs(math.pow(n, 2) - math.pow(m, 2)))
    val Array(a, b) = io.StdIn.readLine.split(" ")
    def main(args: Array[String]) = println(solve(a.toInt, b.toInt))
}
0