結果

問題 No.418 ミンミンゼミ
ユーザー komkomhkomkomh
提出日時 2019-06-09 10:45:16
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 377 ms / 1,000 ms
コード長 156 bytes
コンパイル時間 12,658 ms
コンパイル使用メモリ 408,392 KB
実行使用メモリ 52,844 KB
最終ジャッジ日時 2023-08-13 02:31:11
合計ジャッジ時間 22,100 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 286 ms
52,704 KB
testcase_01 AC 288 ms
52,824 KB
testcase_02 AC 287 ms
52,460 KB
testcase_03 AC 295 ms
52,840 KB
testcase_04 AC 377 ms
52,636 KB
testcase_05 AC 285 ms
52,844 KB
testcase_06 AC 284 ms
52,664 KB
testcase_07 AC 289 ms
52,664 KB
testcase_08 AC 287 ms
52,836 KB
testcase_09 AC 285 ms
52,640 KB
testcase_10 AC 283 ms
52,708 KB
testcase_11 AC 286 ms
52,800 KB
testcase_12 AC 283 ms
52,680 KB
testcase_13 AC 284 ms
52,660 KB
testcase_14 AC 284 ms
52,584 KB
testcase_15 AC 283 ms
52,696 KB
testcase_16 AC 285 ms
52,612 KB
testcase_17 AC 288 ms
52,808 KB
testcase_18 AC 289 ms
52,700 KB
testcase_19 AC 290 ms
52,680 KB
testcase_20 AC 289 ms
52,460 KB
testcase_21 AC 287 ms
52,740 KB
testcase_22 AC 285 ms
52,660 KB
testcase_23 AC 290 ms
52,804 KB
testcase_24 AC 290 ms
52,456 KB
testcase_25 AC 293 ms
52,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder

fun main() {
    val S = readLine()!!

    val count = S.replace("-", "").chunked(3).filter { it == "min" }.count()
    println(count)
}
0