結果

問題 No.224 文字列変更(easy)
ユーザー Mcpu3
提出日時 2018-04-27 18:51:00
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 202 bytes
コンパイル時間 1,256 ms
コンパイル使用メモリ 28,800 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 02:34:36
合計ジャッジ時間 960 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void)
{
	int n, i = 0, u = 0;
	char s[1001], t[1001];
	scanf("%d\n%s\n%s", &n, s, t);
	for (i; i < n; i++) s[i] == t[i] ? u : u++;
	printf("%d\n", u);
	return 0;
}
0