結果

問題 No.671 1000000007
ユーザー prog470prog470
提出日時 2018-05-17 10:13:37
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 930 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 7,566 ms
コンパイル使用メモリ 247,064 KB
実行使用メモリ 61,968 KB
最終ジャッジ日時 2023-09-12 19:16:03
合計ジャッジ時間 20,132 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 912 ms
61,752 KB
testcase_01 AC 930 ms
61,536 KB
testcase_02 AC 910 ms
61,476 KB
testcase_03 AC 902 ms
61,588 KB
testcase_04 AC 928 ms
61,512 KB
testcase_05 AC 913 ms
61,468 KB
testcase_06 AC 922 ms
61,568 KB
testcase_07 AC 923 ms
61,464 KB
testcase_08 AC 917 ms
61,968 KB
testcase_09 AC 917 ms
61,624 KB
testcase_10 AC 924 ms
61,448 KB
testcase_11 AC 921 ms
61,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import scala.math._

object HelloScala {
  def main(args: Array[String]): Unit = {
    val in = io.StdIn.readLine().split("")

    var cnt = 0

    for (e <- in){
      e match {
        case "0" => cnt += 1
        case _ =>
      }
    }

    println(abs(cnt - 8))

  }
}
0