結果

問題 No.632 穴埋め門松列
ユーザー スカーレットニードルスカーレットニードル
提出日時 2018-01-24 08:46:36
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 902 ms / 1,000 ms
コード長 326 bytes
コンパイル時間 8,875 ms
コンパイル使用メモリ 247,600 KB
実行使用メモリ 63,576 KB
最終ジャッジ日時 2023-09-12 15:53:15
合計ジャッジ時間 14,332 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 896 ms
61,908 KB
testcase_01 AC 902 ms
61,884 KB
testcase_02 AC 892 ms
61,800 KB
testcase_03 AC 891 ms
61,760 KB
testcase_04 AC 894 ms
61,896 KB
testcase_05 AC 899 ms
63,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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