My issue
can we carry out the same operation agan and again if we are choosing two different indices
My code
# cook your dish here
t1 = int(input())
for val in range(t1):
n, k = map(int,input().split())
s = input()
t = input()
a = "NO"
score = 0
for i in range(n):
if (s[i] != t[i]):
score += 1
if (score % 2 == 1):
pass
else:
if (n == 2):
if (k > 1):
pass
elif (score/2 <= k):
a = "YES"
print(a)
Problem Link: Binary Conversion Practice Coding Problem