結果

問題 No.224 文字列変更(easy)
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-13 06:08:47
言語 Java
(openjdk 23)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 400 bytes
コンパイル時間 2,139 ms
コンパイル使用メモリ 74,308 KB
実行使用メモリ 54,464 KB
最終ジャッジ日時 2024-07-18 02:19:10
合計ジャッジ時間 5,092 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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