結果

問題 No.224 文字列変更(easy)
ユーザー mikoto1357mikoto1357
提出日時 2015-06-12 22:23:44
言語 Java19
(openjdk 21)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 330 bytes
コンパイル時間 5,727 ms
コンパイル使用メモリ 71,776 KB
実行使用メモリ 55,864 KB
最終ジャッジ日時 2023-09-25 01:58:22
合計ジャッジ時間 9,307 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
55,516 KB
testcase_01 AC 127 ms
55,744 KB
testcase_02 AC 124 ms
55,808 KB
testcase_03 AC 125 ms
55,236 KB
testcase_04 AC 125 ms
55,808 KB
testcase_05 AC 125 ms
55,420 KB
testcase_06 AC 125 ms
55,716 KB
testcase_07 AC 124 ms
55,652 KB
testcase_08 AC 126 ms
55,552 KB
testcase_09 AC 126 ms
55,340 KB
testcase_10 AC 134 ms
55,492 KB
testcase_11 AC 123 ms
55,656 KB
testcase_12 AC 126 ms
55,400 KB
testcase_13 AC 125 ms
55,700 KB
testcase_14 AC 126 ms
55,400 KB
testcase_15 AC 125 ms
55,460 KB
testcase_16 AC 124 ms
55,588 KB
testcase_17 AC 131 ms
55,820 KB
testcase_18 AC 130 ms
55,464 KB
testcase_19 AC 135 ms
55,476 KB
testcase_20 AC 132 ms
55,408 KB
testcase_21 AC 130 ms
55,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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