結果

問題 No.224 文字列変更(easy)
ユーザー hum_ophum_op
提出日時 2016-04-07 14:51:04
言語 F#
(F# 4.0)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 274 bytes
コンパイル時間 5,231 ms
コンパイル使用メモリ 161,468 KB
実行使用メモリ 24,964 KB
最終ジャッジ日時 2023-09-25 02:13:39
合計ジャッジ時間 8,081 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
24,808 KB
testcase_01 AC 82 ms
22,840 KB
testcase_02 AC 82 ms
22,772 KB
testcase_03 AC 82 ms
24,864 KB
testcase_04 AC 81 ms
22,776 KB
testcase_05 AC 82 ms
24,836 KB
testcase_06 AC 81 ms
22,720 KB
testcase_07 AC 81 ms
24,816 KB
testcase_08 AC 82 ms
22,768 KB
testcase_09 AC 82 ms
24,724 KB
testcase_10 AC 82 ms
24,816 KB
testcase_11 AC 80 ms
22,712 KB
testcase_12 AC 80 ms
24,940 KB
testcase_13 AC 80 ms
22,704 KB
testcase_14 AC 82 ms
22,720 KB
testcase_15 AC 81 ms
22,776 KB
testcase_16 AC 83 ms
24,896 KB
testcase_17 AC 82 ms
22,712 KB
testcase_18 AC 82 ms
22,828 KB
testcase_19 AC 82 ms
24,880 KB
testcase_20 AC 83 ms
24,964 KB
testcase_21 AC 82 ms
22,844 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System

let No224 () =
    let n = int <| Console.ReadLine()
    let S = Console.ReadLine()
    let T = Console.ReadLine()
    let mutable C = 0

    for i in 0..n-1 do
        if S.[i] <> T.[i] then
            C <- C + 1
    done

    printfn "%d" C

    ()

No224 ()
0