結果
問題 | No.779 Heisei |
ユーザー | prog470 |
提出日時 | 2019-01-26 15:24:56 |
言語 | Scala(Beta) (3.4.0) |
結果 |
MLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 460 bytes |
コンパイル時間 | 10,745 ms |
コンパイル使用メモリ | 252,976 KB |
実行使用メモリ | 259,652 KB |
最終ジャッジ日時 | 2023-12-26 12:02:28 |
合計ジャッジ時間 | 23,333 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 960 ms
71,768 KB |
testcase_01 | MLE | - |
testcase_02 | AC | 969 ms
64,892 KB |
testcase_03 | AC | 972 ms
64,880 KB |
testcase_04 | AC | 964 ms
64,908 KB |
testcase_05 | AC | 970 ms
64,908 KB |
testcase_06 | AC | 978 ms
64,872 KB |
testcase_07 | AC | 980 ms
64,872 KB |
testcase_08 | AC | 980 ms
64,960 KB |
testcase_09 | AC | 992 ms
64,920 KB |
testcase_10 | TLE | - |
testcase_11 | MLE | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
ソースコード
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) || 2 <= m) => 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") } } }