結果

問題 No.224 文字列変更(easy)
ユーザー yamax3232
提出日時 2018-03-19 13:11:03
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 402 bytes
コンパイル時間 3,743 ms
コンパイル使用メモリ 74,768 KB
実行使用メモリ 54,708 KB
最終ジャッジ日時 2024-12-31 10:40:47
合計ジャッジ時間 8,569 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main2 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner kb=new Scanner(System.in);
		int n=kb.nextInt();
		String str1 =kb.nextLine();
		String str2 =kb.nextLine();
		int count=0;
		for(int i=0;i<n;i++){
			if(str1.charAt(i)!=str2.charAt(i)){
				count++;
			}
		}

		System.out.println(count);
	}
}
0