結果

問題 No.779 Heisei
ユーザー prog470prog470
提出日時 2019-01-26 15:08:38
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 12,428 ms
コンパイル使用メモリ 439,112 KB
実行使用メモリ 56,960 KB
最終ジャッジ日時 2024-04-30 19:53:29
合計ジャッジ時間 17,296 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 263 ms
56,920 KB
testcase_01 AC 274 ms
56,952 KB
testcase_02 AC 278 ms
56,820 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 275 ms
56,952 KB
testcase_06 WA -
testcase_07 AC 263 ms
56,912 KB
testcase_08 AC 275 ms
56,816 KB
testcase_09 AC 276 ms
56,836 KB
testcase_10 AC 280 ms
56,864 KB
testcase_11 AC 278 ms
56,860 KB
testcase_12 AC 273 ms
56,956 KB
testcase_13 WA -
testcase_14 AC 286 ms
56,860 KB
testcase_15 AC 271 ms
56,940 KB
testcase_16 AC 272 ms
56,816 KB
testcase_17 WA -
testcase_18 AC 270 ms
56,816 KB
testcase_19 AC 270 ms
56,884 KB
testcase_20 AC 263 ms
56,852 KB
testcase_21 AC 262 ms
56,844 KB
testcase_22 AC 264 ms
56,848 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args : Array<String>) {
         ^

ソースコード

diff #

fun main(args : Array<String>) {
    var (y,m,d)=readLine()!!.split(" ").map(String::toInt)

    val ans = when{
        y == 1989 && 1 <= m  && 8 <= d-> {
            "yes"
        }
        y == 2019 && m <= 4  && d <= 30 -> {
            "Yes"
        }
        (y in 1990..2018) -> "Yes"
        else -> "No"
    }

    println(ans)
}
0