結果

問題 No.419 直角三角形
コンテスト
ユーザー aRac
提出日時 2016-11-23 20:49:28
言語 Scala(Beta)
(3.8.2)
コンパイル:
scalac _filename_
実行:
/usr/bin/scala_run _class_
結果
WA  
実行時間 -
コード長 221 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,490 ms
コンパイル使用メモリ 254,888 KB
実行使用メモリ 58,436 KB
最終ジャッジ日時 2026-03-09 14:55:07
合計ジャッジ時間 13,796 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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