結果

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

ソースコード

diff #

import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int cou=0;
        String str1 = sc.next();
        String str2 = sc.next();
        for(int i=0;i<num;i++){
            if(str1.charAt(i) != str2.charAt(i))cou++;
        }
        System.out.println(cou);
    }
}
0