結果

問題 No.306 さいたま2008
ユーザー koba-e964koba-e964
提出日時 2015-12-01 12:37:04
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 981 ms / 2,000 ms
コード長 338 bytes
コンパイル時間 10,674 ms
コンパイル使用メモリ 244,356 KB
実行使用メモリ 63,244 KB
最終ジャッジ日時 2023-09-11 21:58:45
合計ジャッジ時間 31,530 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 931 ms
62,816 KB
testcase_01 AC 941 ms
63,228 KB
testcase_02 AC 927 ms
62,896 KB
testcase_03 AC 965 ms
62,740 KB
testcase_04 AC 951 ms
62,836 KB
testcase_05 AC 981 ms
62,892 KB
testcase_06 AC 962 ms
62,808 KB
testcase_07 AC 962 ms
63,224 KB
testcase_08 AC 955 ms
62,972 KB
testcase_09 AC 958 ms
62,760 KB
testcase_10 AC 944 ms
62,784 KB
testcase_11 AC 963 ms
62,896 KB
testcase_12 AC 963 ms
62,876 KB
testcase_13 AC 958 ms
62,744 KB
testcase_14 AC 952 ms
62,984 KB
testcase_15 AC 947 ms
62,824 KB
testcase_16 AC 925 ms
62,964 KB
testcase_17 AC 936 ms
62,992 KB
testcase_18 AC 949 ms
62,800 KB
testcase_19 AC 959 ms
63,244 KB
testcase_20 AC 959 ms
63,204 KB
testcase_21 AC 955 ms
62,728 KB
testcase_22 AC 942 ms
62,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

object Main extends App {
  import java.{util => ju}
  import scala.annotation._
  import scala.collection._
  import scala.collection.{mutable => mu}
  import scala.collection.JavaConverters._
  import scala.math._

  val sc = new ju.Scanner(System.in)
  val a,b,c,d = sc.nextDouble
  val ans = (a * d + b * c) / (a + c)
  println(ans)
}
0