結果

問題 No.292 芸名
ユーザー minokasagominokasago
提出日時 2019-11-01 10:44:04
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 291 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 11,968 ms
コンパイル使用メモリ 416,740 KB
実行使用メモリ 52,916 KB
最終ジャッジ日時 2023-10-13 00:39:00
合計ジャッジ時間 16,647 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 276 ms
52,796 KB
testcase_01 AC 282 ms
52,648 KB
testcase_02 AC 283 ms
52,808 KB
testcase_03 AC 282 ms
52,680 KB
testcase_04 AC 282 ms
52,628 KB
testcase_05 AC 291 ms
52,620 KB
testcase_06 AC 283 ms
52,616 KB
testcase_07 AC 282 ms
52,640 KB
testcase_08 AC 277 ms
52,676 KB
testcase_09 AC 279 ms
52,916 KB
testcase_10 AC 277 ms
52,472 KB
testcase_11 AC 281 ms
52,556 KB
testcase_12 AC 277 ms
52,660 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:7:38: warning: parameter 'c' is never used, could be renamed to _
    val ans = S.filterIndexed() { i, c -> i != t && i != u }
                                     ^

ソースコード

diff #

fun main()
{
    val (S, _t, _u) = readLine()!!.split(" ")
    val t = _t.toInt()
    val u = _u.toInt()

    val ans = S.filterIndexed() { i, c -> i != t && i != u }

    println("${ans}")
}

0