-Code
password = input()
inputPassword = input()
cnt = 0
for i in range(4):
if password[i] == inputPassword[i]:
cnt += 1
print(2 ** (4 - cnt))
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 26004번 HI-ARC (0) | 2023.03.20 |
---|---|
[백준/파이썬] 26314번 Vowel Count (0) | 2023.03.19 |
[백준/파이썬] 27106번 Making Change (0) | 2023.03.17 |
[백준/파이썬] 26940번 Chokladkartongen (0) | 2023.03.16 |
[백준/파이썬] 24768번 Left Beehind (0) | 2023.03.15 |