結果

問題 No.676 C0nvertPr0b1em
コンテスト
ユーザー prog470
提出日時 2018-05-17 10:09:48
言語 Scala(Beta)
(3.8.1)
コンパイル:
scalac _filename_
実行:
java -cp .:/home/linuxbrew/.linuxbrew/Cellar/scala/3.8.1/libexec/maven2/org/scala-lang/scala3-library_3/3.8.1/scala3-library_3-3.8.1.jar:/home/linuxbrew/.linuxbrew/Cellar/scala/3.8.1/libexec/maven2/org/scala-lang/scala-library/3.8.1/scala-library-3.8.1.jar _class_
結果
AC  
実行時間 407 ms / 2,000 ms
コード長 299 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 9,733 ms
コンパイル使用メモリ 255,528 KB
実行使用メモリ 58,876 KB
最終ジャッジ日時 2026-03-09 15:46:11
合計ジャッジ時間 22,959 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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

    var ans = ""

    for (e <- in){
      e match {
        case "I" | "l" => ans += "1"
        case "O" | "o" => ans += "0"
        case _ => ans += e
      }
    }

    println(ans)

  }
}
0