結果

問題 No.841 8/32
ユーザー バカらっくバカらっく
提出日時 2022-02-03 14:04:22
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 277 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 11,164 ms
コンパイル使用メモリ 411,292 KB
実行使用メモリ 52,884 KB
最終ジャッジ日時 2023-09-02 03:16:08
合計ジャッジ時間 19,382 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 271 ms
52,620 KB
testcase_01 AC 272 ms
52,640 KB
testcase_02 AC 267 ms
52,712 KB
testcase_03 AC 263 ms
52,412 KB
testcase_04 AC 268 ms
52,456 KB
testcase_05 AC 274 ms
52,612 KB
testcase_06 AC 269 ms
52,684 KB
testcase_07 AC 270 ms
52,408 KB
testcase_08 AC 271 ms
52,628 KB
testcase_09 AC 270 ms
52,568 KB
testcase_10 AC 264 ms
52,884 KB
testcase_11 AC 275 ms
52,612 KB
testcase_12 AC 272 ms
52,396 KB
testcase_13 AC 272 ms
52,644 KB
testcase_14 AC 274 ms
52,640 KB
testcase_15 AC 270 ms
52,756 KB
testcase_16 AC 273 ms
52,836 KB
testcase_17 AC 272 ms
52,504 KB
testcase_18 AC 275 ms
52,624 KB
testcase_19 AC 271 ms
52,404 KB
testcase_20 AC 273 ms
52,720 KB
testcase_21 AC 277 ms
52,560 KB
testcase_22 AC 269 ms
52,732 KB
testcase_23 AC 272 ms
52,688 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val s = readLine()!!.split(" ")
    val ans = when {
        s.all { it[0] == 'S' } -> {
            "8/33"
        }
        s[0][0] == 'S' -> {
            "8/32"
        }
        else -> {
            "8/31"
        }
    }
    println(ans)
}
0