結果

問題 No.779 Heisei
ユーザー prog470prog470
提出日時 2019-01-26 14:16:34
言語 Scala(Beta)
(3.4.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 437 bytes
コンパイル時間 9,000 ms
コンパイル使用メモリ 259,652 KB
実行使用メモリ 62,488 KB
最終ジャッジ日時 2023-09-14 02:58:39
合計ジャッジ時間 33,979 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 933 ms
62,128 KB
testcase_01 AC 933 ms
61,920 KB
testcase_02 AC 934 ms
61,784 KB
testcase_03 AC 939 ms
61,976 KB
testcase_04 AC 948 ms
61,832 KB
testcase_05 AC 941 ms
61,884 KB
testcase_06 WA -
testcase_07 AC 941 ms
62,284 KB
testcase_08 AC 933 ms
62,168 KB
testcase_09 AC 940 ms
61,968 KB
testcase_10 AC 940 ms
62,028 KB
testcase_11 AC 938 ms
61,812 KB
testcase_12 AC 943 ms
61,872 KB
testcase_13 WA -
testcase_14 AC 944 ms
61,944 KB
testcase_15 AC 930 ms
61,924 KB
testcase_16 AC 934 ms
61,952 KB
testcase_17 AC 927 ms
61,940 KB
testcase_18 AC 939 ms
61,800 KB
testcase_19 AC 934 ms
61,960 KB
testcase_20 AC 939 ms
62,488 KB
testcase_21 AC 947 ms
61,808 KB
testcase_22 AC 967 ms
61,788 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 >= 8 => 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