結果

問題 No.779 Heisei
ユーザー バカらっくバカらっく
提出日時 2022-02-03 12:13:38
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 286 ms / 1,000 ms
コード長 218 bytes
コンパイル時間 11,495 ms
コンパイル使用メモリ 418,356 KB
実行使用メモリ 53,288 KB
最終ジャッジ日時 2023-09-02 03:08:35
合計ジャッジ時間 20,156 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 272 ms
52,876 KB
testcase_01 AC 280 ms
52,888 KB
testcase_02 AC 277 ms
53,288 KB
testcase_03 AC 280 ms
52,976 KB
testcase_04 AC 283 ms
53,092 KB
testcase_05 AC 284 ms
53,140 KB
testcase_06 AC 282 ms
53,108 KB
testcase_07 AC 279 ms
53,088 KB
testcase_08 AC 276 ms
52,900 KB
testcase_09 AC 277 ms
53,032 KB
testcase_10 AC 286 ms
52,916 KB
testcase_11 AC 276 ms
53,088 KB
testcase_12 AC 281 ms
52,952 KB
testcase_13 AC 281 ms
53,088 KB
testcase_14 AC 283 ms
52,944 KB
testcase_15 AC 277 ms
53,128 KB
testcase_16 AC 280 ms
52,812 KB
testcase_17 AC 282 ms
52,888 KB
testcase_18 AC 281 ms
53,008 KB
testcase_19 AC 283 ms
53,088 KB
testcase_20 AC 276 ms
52,860 KB
testcase_21 AC 280 ms
52,824 KB
testcase_22 AC 277 ms
53,060 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val (y,m,d) = readLine()!!.split(" ").map { it.toInt() }
    val ymd = y*10000 + m*100 + d
    val isHeisei =  ymd in (19890108..20190430)
    println(if(isHeisei) "Yes" else "No")
}
0