結果

問題 No.224 文字列変更(easy)
ユーザー olphe
提出日時 2016-11-20 03:02:19
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 228 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 53,620 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 02:18:24
合計ジャッジ時間 1,105 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "iostream"
using namespace std;

int N;
char letter[2][2000];
int ans;

int main() {
	cin >> N >> letter[0] >> letter[1];
	for (int i = 0; i < N; i++) {
		if (letter[0][i] != letter[1][i])ans++;
	}
	cout << ans<<"\n";
}
0