結果

問題 No.207 世界のなんとか
ユーザー 💕💖💞💕💖💞
提出日時 2016-09-19 22:12:59
言語 Scala(Beta)
(3.4.0)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 491 bytes
コンパイル時間 4,324 ms
コンパイル使用メモリ 216,744 KB
最終ジャッジ日時 2023-09-12 04:39:41
合計ジャッジ時間 4,970 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
-- [E040] Syntax Error: Main.scala:9:31 ----------------------------------------
9 |  def main(args: Array[String]){
  |                               ^
  |                               '=' expected, but '{' found
-- [E008] Not Found Error: Main.scala:2:34 -------------------------------------
2 |import scala.collection.immutable.StringLike
  |                                  ^^^^^^^^^^
  |            value StringLike is not a member of scala.collection.immutable
-- [E008] Not Found Error: Main.scala:6:37 -------------------------------------
6 |import scala.collection.mutable.{Map,SynchronizedMap, HashMap}
  |                                     ^^^^^^^^^^^^^^^
  |         value SynchronizedMap is not a member of scala.collection.mutable
3 errors found

ソースコード

diff #

import scala.io.StdIn.readLine
import scala.collection.immutable.StringLike
import scala.collection.immutable.Stream
import Math.{sqrt, pow}
import scala.util.control.Breaks
import scala.collection.mutable.{Map,SynchronizedMap, HashMap}
object Main {
  val b1   = new Breaks
  def main(args: Array[String]){
    val i = readLine().split(" ").map{ x => x.toInt }
    val (a, b) = (i(0), i(1))
    (a to b).map { x =>  
      if (x.toString.contains("3") || x%3 == 0) println(x)
    }   
  }
}
0