結果

問題 No.224 文字列変更(easy)
ユーザー javyjavy
提出日時 2015-11-11 16:58:17
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 274 ms / 5,000 ms
コード長 478 bytes
コンパイル時間 12,237 ms
コンパイル使用メモリ 410,032 KB
実行使用メモリ 52,184 KB
最終ジャッジ日時 2023-09-25 02:09:46
合計ジャッジ時間 19,691 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 262 ms
49,996 KB
testcase_01 AC 274 ms
50,136 KB
testcase_02 AC 267 ms
52,184 KB
testcase_03 AC 261 ms
50,056 KB
testcase_04 AC 267 ms
50,192 KB
testcase_05 AC 265 ms
50,212 KB
testcase_06 AC 264 ms
50,348 KB
testcase_07 AC 265 ms
49,820 KB
testcase_08 AC 265 ms
50,044 KB
testcase_09 AC 269 ms
50,044 KB
testcase_10 AC 264 ms
50,048 KB
testcase_11 AC 268 ms
50,168 KB
testcase_12 AC 269 ms
50,160 KB
testcase_13 AC 269 ms
50,164 KB
testcase_14 AC 266 ms
50,180 KB
testcase_15 AC 266 ms
50,164 KB
testcase_16 AC 267 ms
50,180 KB
testcase_17 AC 272 ms
50,416 KB
testcase_18 AC 270 ms
50,356 KB
testcase_19 AC 270 ms
50,100 KB
testcase_20 AC 270 ms
50,280 KB
testcase_21 AC 270 ms
50,108 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

package Yukicoder

/**
 * Created by hichikawa on 2015/11/11.
 */
fun main(args: Array<String>) {
    fun readLineLong() : Long {
        val str = readLine() as String
        return str.toLong()
    }

    val num = readLineLong()
    val inputStr1 = readLine() as String
    val inputStr2 = readLine() as String
    var count = 0
    for (i in  0..(num-1)) {
        if (inputStr1[i.toInt()] != inputStr2[i.toInt()]) {
            count++
        }
    }
    println(count)
}
0