結果

問題 No.224 文字列変更(easy)
ユーザー mosmos_21
提出日時 2017-06-20 11:46:20
言語 Java
(openjdk 23)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 433 bytes
コンパイル時間 4,875 ms
コンパイル使用メモリ 74,436 KB
実行使用メモリ 54,364 KB
最終ジャッジ日時 2024-07-18 02:24:25
合計ジャッジ時間 5,171 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int N = Integer.parseInt(in.nextLine());
        String s = in.next(), t = in.next();
        int ans = 0;
        for(int i = 0; i < s.length(); i++){
            if(s.charAt(i) != t.charAt(i)){
                ans++;
            }
        }
        System.out.println(ans);
    }
}
0