본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 24606번 Double Password

by 현장 2023. 3. 18.

-Code

password = input()
inputPassword = input()

cnt = 0

for i in range(4):
    if password[i] == inputPassword[i]:
        cnt += 1

print(2 ** (4 - cnt))