結果

問題 No.779 Heisei
ユーザー prog470prog470
提出日時 2019-01-26 15:07:00
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 11,966 ms
コンパイル使用メモリ 433,712 KB
実行使用メモリ 57,096 KB
最終ジャッジ日時 2024-04-30 19:53:08
合計ジャッジ時間 20,815 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 328 ms
56,816 KB
testcase_01 AC 324 ms
56,948 KB
testcase_02 AC 322 ms
56,900 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 328 ms
56,904 KB
testcase_06 WA -
testcase_07 AC 325 ms
56,836 KB
testcase_08 AC 326 ms
56,944 KB
testcase_09 AC 323 ms
56,828 KB
testcase_10 AC 336 ms
56,820 KB
testcase_11 AC 320 ms
56,948 KB
testcase_12 AC 326 ms
56,848 KB
testcase_13 WA -
testcase_14 AC 324 ms
56,920 KB
testcase_15 AC 323 ms
56,816 KB
testcase_16 AC 321 ms
56,812 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 321 ms
56,936 KB
testcase_20 AC 330 ms
56,956 KB
testcase_21 AC 328 ms
56,944 KB
testcase_22 AC 328 ms
56,916 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 -> {
            "No"
        }
        (y in 1990..2018) -> "Yes"
        else -> "No"
    }

    println(ans)
}
0