結果
問題 | No.292 芸名 |
ユーザー |
![]() |
提出日時 | 2019-11-01 10:44:04 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 305 ms / 2,000 ms |
コード長 | 193 bytes |
コンパイル時間 | 14,043 ms |
コンパイル使用メモリ | 435,236 KB |
実行使用メモリ | 51,004 KB |
最終ジャッジ日時 | 2024-09-14 22:34:45 |
合計ジャッジ時間 | 17,589 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
Main.kt:7:38: warning: parameter 'c' is never used, could be renamed to _ val ans = S.filterIndexed() { i, c -> i != t && i != u } ^
ソースコード
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}")}