結果

問題 No.779 Heisei
ユーザー prog470prog470
提出日時 2019-01-26 15:23:10
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 460 bytes
コンパイル時間 9,499 ms
コンパイル使用メモリ 252,148 KB
実行使用メモリ 62,372 KB
最終ジャッジ日時 2023-09-14 02:59:20
合計ジャッジ時間 29,688 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 805 ms
62,048 KB
testcase_01 AC 784 ms
61,960 KB
testcase_02 AC 785 ms
61,936 KB
testcase_03 AC 800 ms
61,932 KB
testcase_04 AC 792 ms
62,128 KB
testcase_05 AC 775 ms
61,876 KB
testcase_06 AC 783 ms
62,068 KB
testcase_07 AC 780 ms
62,008 KB
testcase_08 AC 769 ms
62,084 KB
testcase_09 AC 768 ms
62,244 KB
testcase_10 AC 778 ms
62,260 KB
testcase_11 AC 801 ms
61,964 KB
testcase_12 AC 788 ms
62,068 KB
testcase_13 AC 782 ms
62,048 KB
testcase_14 AC 763 ms
62,300 KB
testcase_15 AC 773 ms
62,024 KB
testcase_16 WA -
testcase_17 AC 763 ms
62,012 KB
testcase_18 AC 762 ms
62,204 KB
testcase_19 AC 774 ms
61,968 KB
testcase_20 AC 770 ms
61,940 KB
testcase_21 AC 784 ms
62,056 KB
testcase_22 AC 760 ms
62,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import scala.io.StdIn.readLine

object yuki0779 {
  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)  || m <= 2) => println("Yes")
      case (y,m,d) if y == 2019 && ((m <= 4 && d <= 30) || m <= 3) => println("Yes")
      case (y,_,_) if 1990 <= y && y <= 2018 => println("Yes")
      case (_,_,_)  => println("No")
    }
  }
}
0