結果

問題 No.779 Heisei
ユーザー prog470prog470
提出日時 2019-01-26 14:14:10
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 437 bytes
コンパイル時間 13,260 ms
コンパイル使用メモリ 248,964 KB
実行使用メモリ 62,344 KB
最終ジャッジ日時 2023-09-14 02:57:54
合計ジャッジ時間 37,698 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 962 ms
62,192 KB
testcase_01 AC 962 ms
61,960 KB
testcase_02 AC 970 ms
61,940 KB
testcase_03 AC 965 ms
62,184 KB
testcase_04 AC 963 ms
62,108 KB
testcase_05 AC 972 ms
61,928 KB
testcase_06 AC 952 ms
61,796 KB
testcase_07 AC 962 ms
62,080 KB
testcase_08 AC 959 ms
61,968 KB
testcase_09 AC 958 ms
61,964 KB
testcase_10 AC 966 ms
61,956 KB
testcase_11 AC 965 ms
62,056 KB
testcase_12 AC 963 ms
62,172 KB
testcase_13 WA -
testcase_14 AC 970 ms
62,008 KB
testcase_15 AC 996 ms
62,068 KB
testcase_16 WA -
testcase_17 AC 957 ms
62,064 KB
testcase_18 AC 982 ms
61,948 KB
testcase_19 AC 967 ms
61,988 KB
testcase_20 AC 964 ms
62,028 KB
testcase_21 AC 970 ms
62,092 KB
testcase_22 AC 979 ms
62,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import scala.io.StdIn.readLine

object SampleLauncher {
  def main(args: Array[String]): Unit = {
    val ymd = readLine().split(" ").map(_.toInt)

    (ymd(0),ymd(1), ymd(2)) match {
      case (y,m,d) if y == 1989 && m >= 1 && d >= 4 => println("Yes")
      case (y,m,d) if y == 2019 && m <= 4 && d <= 30 => println("Yes")
      case (y,_,_) if 1990 <= y && y <= 2018 => println("Yes")
      case (_,_,_)  => println("No")
    }
  }
}
0