結果

問題 No.224 文字列変更(easy)
ユーザー mits58
提出日時 2016-07-02 00:29:03
言語 Java
(openjdk 23)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 326 bytes
コンパイル時間 1,794 ms
コンパイル使用メモリ 73,956 KB
実行使用メモリ 41,612 KB
最終ジャッジ日時 2024-07-18 02:15:14
合計ジャッジ時間 5,115 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			int n=sc.nextInt();
			String s=sc.next();
			String t=sc.next();
			int ans=0;
			for(int i=0;i<n;i++) if(s.charAt(i)!=t.charAt(i)) ans++;
			System.out.println(ans);
		}
	}
}
0