結果

問題 No.224 文字列変更(easy)
ユーザー yuiyui
提出日時 2017-02-20 16:53:43
言語 Java
(openjdk 23)
結果
AC  
実行時間 56 ms / 5,000 ms
コード長 558 bytes
コンパイル時間 1,958 ms
コンパイル使用メモリ 74,592 KB
実行使用メモリ 50,560 KB
最終ジャッジ日時 2024-07-18 02:20:21
合計ジャッジ時間 3,942 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

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 += 1;
			}
		}
		System.out.println(count);
	}
}
0