結果

問題 No.224 文字列変更(easy)
ユーザー shinwisteriashinwisteria
提出日時 2018-02-21 22:33:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 5,000 ms
コード長 366 bytes
コンパイル時間 3,214 ms
コンパイル使用メモリ 71,916 KB
実行使用メモリ 56,256 KB
最終ジャッジ日時 2023-09-25 02:34:53
合計ジャッジ時間 7,111 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,648 KB
testcase_01 AC 129 ms
55,620 KB
testcase_02 AC 124 ms
56,128 KB
testcase_03 AC 127 ms
55,792 KB
testcase_04 AC 124 ms
56,040 KB
testcase_05 AC 123 ms
55,780 KB
testcase_06 AC 122 ms
55,896 KB
testcase_07 AC 124 ms
55,212 KB
testcase_08 AC 126 ms
55,600 KB
testcase_09 AC 125 ms
55,884 KB
testcase_10 AC 126 ms
55,436 KB
testcase_11 AC 126 ms
56,044 KB
testcase_12 AC 124 ms
55,860 KB
testcase_13 AC 126 ms
55,664 KB
testcase_14 AC 123 ms
55,392 KB
testcase_15 AC 125 ms
55,464 KB
testcase_16 AC 124 ms
55,520 KB
testcase_17 AC 131 ms
53,396 KB
testcase_18 AC 127 ms
56,256 KB
testcase_19 AC 127 ms
55,428 KB
testcase_20 AC 127 ms
55,764 KB
testcase_21 AC 128 ms
55,676 KB
権限があれば一括ダウンロードができます

ソースコード

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