結果

問題 No.224 文字列変更(easy)
ユーザー chankou0920chankou0920
提出日時 2017-10-20 12:40:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 5,000 ms
コード長 349 bytes
コンパイル時間 1,962 ms
コンパイル使用メモリ 102,136 KB
実行使用メモリ 22,612 KB
最終ジャッジ日時 2023-09-25 02:30:35
合計ジャッジ時間 4,170 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
20,456 KB
testcase_01 AC 52 ms
20,492 KB
testcase_02 AC 52 ms
20,508 KB
testcase_03 AC 52 ms
20,400 KB
testcase_04 AC 52 ms
22,612 KB
testcase_05 AC 51 ms
20,488 KB
testcase_06 AC 52 ms
20,536 KB
testcase_07 AC 52 ms
22,536 KB
testcase_08 AC 51 ms
22,488 KB
testcase_09 AC 52 ms
22,456 KB
testcase_10 AC 52 ms
20,396 KB
testcase_11 AC 52 ms
22,524 KB
testcase_12 AC 52 ms
20,396 KB
testcase_13 AC 52 ms
20,560 KB
testcase_14 AC 52 ms
20,508 KB
testcase_15 AC 51 ms
20,456 KB
testcase_16 AC 52 ms
20,540 KB
testcase_17 AC 53 ms
22,552 KB
testcase_18 AC 53 ms
20,540 KB
testcase_19 AC 53 ms
22,488 KB
testcase_20 AC 53 ms
22,604 KB
testcase_21 AC 53 ms
20,584 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
	public static void Main(string[] args) {
		Console.ReadLine(); // n
		char[] a = Console.ReadLine().ToCharArray();
		char[] b = Console.ReadLine().ToCharArray();
		
		int count = 0;
		
		for (int i = 0; i < a.Length; i++) {
			if (!a[i].Equals(b[i])) {
				count++;
			}
		}
		
		Console.WriteLine(count);
	}
}
0