結果

問題 No.224 文字列変更(easy)
ユーザー shinwisteria
提出日時 2018-02-21 22:33:13
言語 Java
(openjdk 23)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 366 bytes
コンパイル時間 2,944 ms
コンパイル使用メモリ 74,684 KB
実行使用メモリ 54,248 KB
最終ジャッジ日時 2024-07-18 02:30:57
合計ジャッジ時間 5,952 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con224 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String S = s.next() , T = s.next();
		s.close();

		int count = 0;
		for(int i = 0;i < S.length();i++){
			if(S.charAt(i) != T.charAt(i)){
				count++;
			}
		}
		System.out.println(count);
	}

}
0