abc172_b - Minor Change

Click to show code.


using namespace std;
int main(void)
{
    int ans = 0;
    string s, t;
    cin >> s >> t;
    for (int i = 0, n = s.size(); i < n; ++i)
    {
        ans += (s[i] != t[i]);
    }
    cout << ans << endl;
    return 0;
}