結果

問題 No.224 文字列変更(easy)
ユーザー Grenache
提出日時 2015-06-15 11:16:16
言語 Java
(openjdk 23)
結果
AC  
実行時間 144 ms / 5,000 ms
コード長 477 bytes
コンパイル時間 4,054 ms
コンパイル使用メモリ 75,160 KB
実行使用メモリ 54,316 KB
最終ジャッジ日時 2024-07-18 02:03:11
合計ジャッジ時間 7,441 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder224 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        char[] s = sc.next().toCharArray();
        char[] t = sc.next().toCharArray();

        int ret = 0;
        for (int i = 0; i < n; i++) {
        	if (s[i] != t[i]) {
        		ret++;
        	}
        }
        
        System.out.println(ret);
        
        sc.close();
    }
}
0