結果

問題 No.224 文字列変更(easy)
ユーザー TatsuDX
提出日時 2016-09-03 18:13:48
言語 Java
(openjdk 23)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 321 bytes
コンパイル時間 2,828 ms
コンパイル使用メモリ 74,712 KB
実行使用メモリ 54,488 KB
最終ジャッジ日時 2024-07-18 02:17:44
合計ジャッジ時間 6,047 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

		int n = sc.nextInt(), cnt = 0;
		String s1 = sc.next(), s2 = sc.next();
		for(int i = 0; i < n; i++){
			if(s1.charAt(i) != s2.charAt(i)){
				cnt++;
			}
		}
		System.out.println(cnt);
	}
}
0