結果

問題 No.172 UFOを捕まえろ
ユーザー gigurururugigurururu
提出日時 2015-04-02 07:36:04
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 967 ms / 5,000 ms
コード長 186 bytes
コンパイル時間 9,131 ms
コンパイル使用メモリ 255,940 KB
実行使用メモリ 62,532 KB
最終ジャッジ日時 2023-09-11 10:57:02
合計ジャッジ時間 33,865 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 948 ms
62,392 KB
testcase_01 AC 960 ms
62,264 KB
testcase_02 AC 954 ms
62,036 KB
testcase_03 AC 963 ms
62,124 KB
testcase_04 AC 950 ms
62,436 KB
testcase_05 AC 956 ms
62,124 KB
testcase_06 AC 952 ms
62,532 KB
testcase_07 AC 953 ms
62,100 KB
testcase_08 AC 946 ms
62,080 KB
testcase_09 AC 957 ms
62,208 KB
testcase_10 AC 964 ms
62,112 KB
testcase_11 AC 967 ms
62,188 KB
testcase_12 AC 964 ms
62,148 KB
testcase_13 AC 962 ms
62,196 KB
testcase_14 AC 957 ms
62,188 KB
testcase_15 AC 964 ms
62,492 KB
testcase_16 AC 958 ms
62,172 KB
testcase_17 AC 948 ms
62,092 KB
testcase_18 AC 950 ms
62,352 KB
testcase_19 AC 948 ms
62,144 KB
testcase_20 AC 957 ms
62,176 KB
testcase_21 AC 954 ms
62,500 KB
testcase_22 AC 961 ms
62,180 KB
testcase_23 AC 948 ms
62,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import scala.io.StdIn
import Math.{sqrt,abs}
object Main extends App {
  val a = StdIn.readLine.split(" ").map { x => abs(x.toInt) }
  println((a(0) + a(1) + a(2) * sqrt(2)).toInt + 1)
}
0