結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー face4face4
提出日時 2021-04-13 10:14:09
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 435 ms / 1,000 ms
コード長 240 bytes
コンパイル時間 13,439 ms
コンパイル使用メモリ 419,208 KB
実行使用メモリ 54,776 KB
最終ジャッジ日時 2023-09-11 14:44:55
合計ジャッジ時間 28,591 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 287 ms
50,188 KB
testcase_01 AC 283 ms
50,172 KB
testcase_02 AC 279 ms
50,060 KB
testcase_03 AC 275 ms
50,364 KB
testcase_04 AC 278 ms
50,424 KB
testcase_05 AC 274 ms
50,192 KB
testcase_06 AC 274 ms
50,288 KB
testcase_07 AC 279 ms
50,168 KB
testcase_08 AC 285 ms
50,144 KB
testcase_09 AC 276 ms
50,176 KB
testcase_10 AC 276 ms
50,100 KB
testcase_11 AC 276 ms
50,240 KB
testcase_12 AC 288 ms
50,460 KB
testcase_13 AC 417 ms
54,232 KB
testcase_14 AC 429 ms
54,348 KB
testcase_15 AC 334 ms
50,412 KB
testcase_16 AC 405 ms
54,248 KB
testcase_17 AC 427 ms
54,392 KB
testcase_18 AC 419 ms
54,324 KB
testcase_19 AC 425 ms
54,344 KB
testcase_20 AC 415 ms
54,236 KB
testcase_21 AC 411 ms
54,300 KB
testcase_22 AC 412 ms
54,472 KB
testcase_23 AC 413 ms
54,204 KB
testcase_24 AC 404 ms
54,284 KB
testcase_25 AC 419 ms
54,564 KB
testcase_26 AC 419 ms
54,776 KB
testcase_27 AC 412 ms
54,308 KB
testcase_28 AC 426 ms
54,380 KB
testcase_29 AC 421 ms
54,416 KB
testcase_30 AC 421 ms
54,524 KB
testcase_31 AC 435 ms
54,444 KB
testcase_32 AC 425 ms
54,364 KB
testcase_33 AC 398 ms
54,212 KB
testcase_34 AC 392 ms
54,204 KB
testcase_35 AC 275 ms
50,220 KB
testcase_36 AC 281 ms
50,088 KB
testcase_37 AC 274 ms
50,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main(){
    val s = readLine()!!
    if(s.count{it==s[0]} > 1){
        for(i in s.indices){
            if(s[i] != s[0]){
                println("${i+1} ${s[i]}")
            }
        }
    }else{
        println("1 ${s[0]}")
    }
}
0