結果

問題 No.676 C0nvertPr0b1em
コンテスト
ユーザー prog470
提出日時 2018-05-17 10:08:20
言語 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_
結果
WA  
実行時間 -
コード長 299 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,042 ms
コンパイル使用メモリ 250,104 KB
実行使用メモリ 58,916 KB
最終ジャッジ日時 2026-03-09 15:45:51
合計ジャッジ時間 15,375 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 26
権限があれば一括ダウンロードができます

ソースコード

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" | "i" => ans += "1"
        case "O" | "o" => ans += "0"
        case _ => ans += e
      }
    }

    println(ans)

  }
}
0