yukicoder 224 文字列変更(easy)
問題
方針
$s[i] \neq t[i]$ となっている箇所を数える.
実装
signed main(){
ios_base::sync_with_stdio(0); cin.tie(0);
int n;
string s,t;
cin >> n >> s >> t;
int ans = 0;
rep(i,n) if(s[i]!=t[i]) ans++;
cout << ans << endl;
}