結果

問題 No.779 Heisei
ユーザー prog470prog470
提出日時 2019-01-26 15:05:58
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 11,459 ms
コンパイル使用メモリ 436,292 KB
実行使用メモリ 57,132 KB
最終ジャッジ日時 2024-04-30 19:52:41
合計ジャッジ時間 19,841 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 310 ms
56,888 KB
testcase_01 AC 311 ms
56,936 KB
testcase_02 AC 309 ms
56,904 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 308 ms
56,788 KB
testcase_06 WA -
testcase_07 AC 309 ms
56,804 KB
testcase_08 AC 317 ms
56,960 KB
testcase_09 AC 309 ms
56,800 KB
testcase_10 AC 309 ms
56,940 KB
testcase_11 AC 310 ms
56,864 KB
testcase_12 AC 307 ms
56,820 KB
testcase_13 WA -
testcase_14 AC 314 ms
56,936 KB
testcase_15 AC 308 ms
56,784 KB
testcase_16 AC 309 ms
56,816 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 310 ms
57,064 KB
testcase_20 AC 304 ms
56,888 KB
testcase_21 AC 313 ms
56,900 KB
testcase_22 AC 312 ms
56,892 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  && m <= 30 -> {
            "No"
        }
        (y in 1990..2018) -> "Yes"
        else -> "No"
    }

    println(ans)
}
0