結果

問題 No.224 文字列変更(easy)
ユーザー yuiyui
提出日時 2017-02-20 16:58:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 46 ms / 5,000 ms
コード長 554 bytes
コンパイル時間 1,921 ms
コンパイル使用メモリ 71,364 KB
実行使用メモリ 49,668 KB
最終ジャッジ日時 2023-09-25 02:22:19
合計ジャッジ時間 3,892 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,304 KB
testcase_01 AC 45 ms
49,196 KB
testcase_02 AC 42 ms
49,156 KB
testcase_03 AC 43 ms
49,408 KB
testcase_04 AC 42 ms
49,512 KB
testcase_05 AC 42 ms
49,184 KB
testcase_06 AC 42 ms
49,152 KB
testcase_07 AC 43 ms
49,668 KB
testcase_08 AC 42 ms
49,124 KB
testcase_09 AC 42 ms
49,124 KB
testcase_10 AC 42 ms
49,128 KB
testcase_11 AC 43 ms
49,220 KB
testcase_12 AC 42 ms
49,244 KB
testcase_13 AC 46 ms
49,172 KB
testcase_14 AC 42 ms
49,124 KB
testcase_15 AC 43 ms
49,576 KB
testcase_16 AC 43 ms
49,216 KB
testcase_17 AC 44 ms
49,112 KB
testcase_18 AC 44 ms
49,240 KB
testcase_19 AC 43 ms
49,320 KB
testcase_20 AC 44 ms
49,332 KB
testcase_21 AC 43 ms
49,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		String aaa = br.readLine();
		String bbb = br.readLine();
		int count = 0;
		for (int i = 0; i < num; i++) {
			if (aaa.charAt(i) != bbb.charAt(i)){
				count++;
			}
		}
		System.out.println(count);
	}
}
0