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

[백준/파이썬] 21143번 Magic Trick

by 현장 2024. 1. 20.

-Code

s = input()
res = 1

for w in set(list(s)):
    if s.count(w) > 1:
        res = 0
        break

print(res)