結果

問題 No.224 文字列変更(easy)
ユーザー YOSHIYOSHI
提出日時 2021-03-06 18:47:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 488 bytes
コンパイル時間 3,022 ms
コンパイル使用メモリ 74,768 KB
実行使用メモリ 37,204 KB
最終ジャッジ日時 2024-04-17 06:36:52
合計ジャッジ時間 5,030 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
37,204 KB
testcase_01 AC 53 ms
37,044 KB
testcase_02 AC 51 ms
37,064 KB
testcase_03 AC 52 ms
36,956 KB
testcase_04 AC 52 ms
37,164 KB
testcase_05 AC 54 ms
36,888 KB
testcase_06 AC 51 ms
36,984 KB
testcase_07 AC 51 ms
36,956 KB
testcase_08 AC 51 ms
36,668 KB
testcase_09 AC 52 ms
36,544 KB
testcase_10 AC 51 ms
36,876 KB
testcase_11 AC 51 ms
37,172 KB
testcase_12 AC 51 ms
36,992 KB
testcase_13 AC 49 ms
36,936 KB
testcase_14 AC 51 ms
37,076 KB
testcase_15 AC 51 ms
36,952 KB
testcase_16 AC 49 ms
36,876 KB
testcase_17 AC 53 ms
37,160 KB
testcase_18 AC 52 ms
37,060 KB
testcase_19 AC 54 ms
37,028 KB
testcase_20 AC 54 ms
37,064 KB
testcase_21 AC 53 ms
37,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000224_Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String s = br.readLine();
		String t = br.readLine();

		int cnt = 0;
		for(int i = 0; i < n; i++) {
			if(s.charAt(i) != t.charAt(i))  cnt++;
		}
		System.out.println(cnt);
	}
}
0