재밌는 문자열 처리들
This commit is contained in:
12
zeta_python/completed/1120.py
Normal file
12
zeta_python/completed/1120.py
Normal file
@@ -0,0 +1,12 @@
|
||||
A, B = input().split()
|
||||
|
||||
|
||||
def get(a, b):
|
||||
cnt = 0
|
||||
for f, s in zip(a, b):
|
||||
if f != s:
|
||||
cnt += 1
|
||||
return cnt
|
||||
|
||||
|
||||
print(min(get(A, B[i:i+len(A)+1]) for i in range(len(B) - len(A)+1)))
|
||||
Reference in New Issue
Block a user