結果

問題 No.224 文字列変更(easy)
ユーザー teritama_gteritama_g
提出日時 2015-06-16 14:56:58
言語 Java21
(openjdk 21)
結果
AC  
実行時間 46 ms / 5,000 ms
コード長 632 bytes
コンパイル時間 3,359 ms
コンパイル使用メモリ 71,236 KB
実行使用メモリ 49,408 KB
最終ジャッジ日時 2023-09-25 02:02:30
合計ジャッジ時間 4,109 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
48,904 KB
testcase_01 AC 45 ms
49,136 KB
testcase_02 AC 43 ms
49,096 KB
testcase_03 AC 44 ms
48,916 KB
testcase_04 AC 43 ms
49,324 KB
testcase_05 AC 43 ms
49,408 KB
testcase_06 AC 43 ms
49,156 KB
testcase_07 AC 45 ms
48,860 KB
testcase_08 AC 44 ms
48,920 KB
testcase_09 AC 46 ms
49,212 KB
testcase_10 AC 46 ms
49,312 KB
testcase_11 AC 43 ms
49,004 KB
testcase_12 AC 44 ms
49,160 KB
testcase_13 AC 44 ms
49,144 KB
testcase_14 AC 45 ms
49,404 KB
testcase_15 AC 44 ms
49,024 KB
testcase_16 AC 43 ms
49,024 KB
testcase_17 AC 44 ms
49,012 KB
testcase_18 AC 43 ms
49,316 KB
testcase_19 AC 43 ms
49,024 KB
testcase_20 AC 44 ms
48,912 KB
testcase_21 AC 44 ms
49,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.lang.*;
import java.io.*;

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int N = 0;
		InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(is);
        String X1 = br.readLine();
       	String X2 = br.readLine();
       	String X3 = br.readLine();
       	int C = Integer.parseInt(X1);
       	char n[] = X2.toCharArray();
       	char m[] = X3.toCharArray();
       	
       	for(int i=0;(C-1)>=i;i++){
       		if(n[i]!=m[i]){
       			N = N + 1;
       		}
       	}
       	System.out.println(N);
	}
}
0