結果
問題 | No.2350 Four Seasons |
ユーザー |
|
提出日時 | 2023-07-04 17:56:25 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 287 ms / 2,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 11,443 ms |
コンパイル使用メモリ | 423,136 KB |
実行使用メモリ | 54,248 KB |
最終ジャッジ日時 | 2024-07-18 13:10:58 |
合計ジャッジ時間 | 15,803 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
コンパイルメッセージ
Main.kt:2:32: warning: unnecessary non-null assertion (!!) on a non-null receiver of type String val input_Season = readln()!!.toInt() ^
ソースコード
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")}}