結果

問題 No.313 π
ユーザー koba-e964koba-e964
提出日時 2015-12-09 11:41:44
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 1,211 ms / 5,000 ms
コード長 561 bytes
コンパイル時間 8,667 ms
コンパイル使用メモリ 268,136 KB
実行使用メモリ 63,936 KB
最終ジャッジ日時 2023-09-11 22:34:17
合計ジャッジ時間 50,380 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,118 ms
63,476 KB
testcase_01 AC 1,120 ms
63,488 KB
testcase_02 AC 1,131 ms
63,468 KB
testcase_03 AC 1,128 ms
63,464 KB
testcase_04 AC 1,123 ms
63,424 KB
testcase_05 AC 1,128 ms
63,392 KB
testcase_06 AC 1,126 ms
63,412 KB
testcase_07 AC 1,129 ms
63,444 KB
testcase_08 AC 1,125 ms
63,488 KB
testcase_09 AC 1,121 ms
63,408 KB
testcase_10 AC 1,121 ms
63,412 KB
testcase_11 AC 1,130 ms
63,352 KB
testcase_12 AC 1,124 ms
63,452 KB
testcase_13 AC 1,125 ms
63,424 KB
testcase_14 AC 1,153 ms
63,600 KB
testcase_15 AC 1,124 ms
63,392 KB
testcase_16 AC 1,133 ms
63,512 KB
testcase_17 AC 1,140 ms
63,456 KB
testcase_18 AC 1,131 ms
63,472 KB
testcase_19 AC 1,125 ms
63,528 KB
testcase_20 AC 1,211 ms
63,468 KB
testcase_21 AC 1,143 ms
63,448 KB
testcase_22 AC 1,130 ms
63,576 KB
testcase_23 AC 1,124 ms
63,520 KB
testcase_24 AC 1,132 ms
63,468 KB
testcase_25 AC 1,137 ms
63,936 KB
testcase_26 AC 1,151 ms
63,364 KB
testcase_27 AC 1,133 ms
63,564 KB
testcase_28 AC 1,136 ms
63,504 KB
testcase_29 AC 1,128 ms
63,440 KB
testcase_30 AC 1,124 ms
63,544 KB
testcase_31 AC 1,123 ms
63,404 KB
testcase_32 AC 1,132 ms
63,512 KB
testcase_33 AC 1,135 ms
63,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/*
 * Reference: http://lizan.asia/blog/2012/12/11/scala-competitive/
 */

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 dig = sc.next
  val ans = Array(20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841)
  val diff = Array.tabulate(10){x => dig.count(_ == x + '0') - ans(x)}
  println(diff.indexOf(1) + " " + diff.indexOf(-1))
}
0