結果

問題 No.1070 Missing a space
ユーザー face4
提出日時 2021-04-09 00:35:24
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 314 ms / 1,000 ms
コード長 186 bytes
コンパイル時間 13,646 ms
コンパイル使用メモリ 425,680 KB
実行使用メモリ 56,880 KB
最終ジャッジ日時 2024-06-24 03:32:54
合計ジャッジ時間 14,737 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main(){
    println(readLine()!!.let{
        when(it.length){
            2 -> 1
            else -> it.length - 1 - it.substring(1..it.length-1).count({it=='0'})
        }
    })
}
0