Submission
Status:
[-SSSSSSSSS]
Score: 0
User: fluke
Problemset: 04.Corretc the wodr
Language: cpp
Time: 0.002 second
Submitted On: 2025-04-04 20:40:41
#include <bits/stdc++.h>
#define ll long long
#define f first
#define s second
#define pii pair<int,int>
#define emb emplace_back
#define em emplace
#define DB cout<<"\n";system("pause");
#define all(x) x.begin(),x.end()
#define sp <<" "<<
using namespace std;
int main(){
ios::sync_with_stdio(false);cin.tie(0);
int q;
cin>>q;
while(q--){
string a,b;
cin>>a>>b;
int suma = 0 , sumb = 0;
for(auto c : a)suma += c;
for(auto c : b)sumb += c;
if(suma != sumb){
cout<<"Cannot transform to "<<a<<"\n";
continue;
}
int different = 0;
for(int i=0;i<a.size();i++){
if(a[i] != b[i])different ++;
}
cout<<(different + 1)/2<<"\n";
}
}