結果

問題 No.712 赤旗
ユーザー minokasagominokasago
提出日時 2019-11-01 11:21:56
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 299 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 12,535 ms
コンパイル使用メモリ 415,432 KB
実行使用メモリ 53,080 KB
最終ジャッジ日時 2023-10-13 00:39:43
合計ジャッジ時間 15,083 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 286 ms
52,944 KB
testcase_01 AC 290 ms
52,804 KB
testcase_02 AC 285 ms
52,860 KB
testcase_03 AC 289 ms
52,652 KB
testcase_04 AC 299 ms
53,080 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:13: warning: variable 'W' is never used
    val (N, W) = readLine()!!.split(" ").map(String::toInt)
            ^

ソースコード

diff #

fun main()
{
    val (N, W) = readLine()!!.split(" ").map(String::toInt)
    var ans = 0
    repeat(N) { ans += readLine()!!.count { c -> c != 'R'} }
    println("${ans}")
}

0