結果

問題 No.632 穴埋め門松列
コンテスト
ユーザー スカーレットニードル
提出日時 2018-01-24 08:46:36
言語 Scala(Beta)
(3.8.1)
コンパイル:
scalac _filename_
実行:
/usr/bin/scala_run _class_
結果
AC  
実行時間 305 ms / 1,000 ms
コード長 326 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,792 ms
コンパイル使用メモリ 256,304 KB
実行使用メモリ 64,956 KB
最終ジャッジ日時 2026-03-09 15:16:50
合計ジャッジ時間 9,217 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

object Main extends App {
    val (a, b, c) = scala.io.StdIn.readf3("{0} {1} {2}")
    val tp = (a.asInstanceOf[String], b.asInstanceOf[String], c.asInstanceOf[String])
    tp match {
    case ("?", a, b) => println(if (a > b) 1 else 4)
    case (a, b, "?") => println(if (a < b) 1 else 4)
    case _ => println(14)
    }   
}
0