The following codes is giving **WA**:

```
for _ in range(int(input())):
a = input()
b = input()
m1,m2 = 0,0
for i in range(len(a)):
if a[i]!='?' and b[i]!='?' and a[i]!=b[i]:
m1+=1
else:
m2+=1
print(m1,m1+m2)
```

The following code is giving **AC**:

```
for _ in range(int(input())):
a = input()
b = input()
m1,m2 = 0,0
for i in range(len(a)):
if a[i]!='?' and b[i]!='?':
if a[i]!=b[i]:
m1+=1
else:
m2+=1
print(m1,m1+m2)
```

**What is the difference between following???** for the problem https://www.codechef.com/problems/CHEFSTLT

```
if a[i]!='?' and b[i]!='?' and a[i]!=b[i]:
m1+=1
if a[i]!='?' and b[i]!='?':
if a[i]!=b[i]:
m1+=1
```