結果

問題 No.2350 Four Seasons
ユーザー JohmaruJohmaru
提出日時 2023-07-04 17:56:25
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 281 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 12,912 ms
コンパイル使用メモリ 415,668 KB
実行使用メモリ 50,604 KB
最終ジャッジ日時 2023-09-25 16:44:24
合計ジャッジ時間 17,977 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 281 ms
50,340 KB
testcase_01 AC 277 ms
50,604 KB
testcase_02 AC 278 ms
50,188 KB
testcase_03 AC 279 ms
50,376 KB
testcase_04 AC 274 ms
50,480 KB
testcase_05 AC 268 ms
50,212 KB
testcase_06 AC 271 ms
50,352 KB
testcase_07 AC 276 ms
50,444 KB
testcase_08 AC 274 ms
50,440 KB
testcase_09 AC 281 ms
50,128 KB
testcase_10 AC 279 ms
50,128 KB
testcase_11 AC 276 ms
50,216 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:2:32: warning: unnecessary non-null assertion (!!) on a non-null receiver of type String
    val input_Season = readln()!!.toInt()
                               ^

ソースコード

diff #

fun main() {
    val input_Season = readln()!!.toInt()

    when (input_Season) {

        3,4,5 -> println("spring")
        6,7,8 -> println("summer")
        9,10,11 -> println("fall")
        12,1,2 -> println("winter")
    }
}
0