-Code
s = input().lower()
s_set = list(set(s))
count_list = []
for w in s_set:
count_list.append(s.count(w))
if count_list.count(max(count_list)) > 1:
print('?')
else:
print(s_set[count_list.index(max(count_list))].upper())
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 23882번 알고리즘 수업 - 선택 정렬 2 (0) | 2023.05.04 |
---|---|
[백준/파이썬] 10812번 바구니 순서 바꾸기 (0) | 2023.05.03 |
[백준/파이썬] 20155번 우리 집 밑에 편의점이 있는데 (0) | 2023.05.01 |
[백준/파이썬] 23841번 데칼코마니 (0) | 2023.04.30 |
[백준/파이썬] 13419번 탕수육 (0) | 2023.04.29 |