Submission #4

Details and source code

Back to submissions
IDTimeUserProblemLangVerdict
4Mar 21, 2025, 07:59 PMadminHamming DistancecppAC

Source Code

cpp
#include <bits/stdc++.h>
using namespace std;

int main() {
    string s, t;
    cin >> s >> t;
    int answer = 0;
    for(int i = 0; i < s.size(); ++i) {
        if(s[i] != t[i]) ++answer;
    }
    cout << answer << endl;
    return 0;
}