-Code
n = int(input())
s = input()
e = s.count('e')
two = s.count('2')
if e > two:
print('e')
elif e < two:
print(2)
else:
print("yee")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 22279번 Quality-Adjusted Life-Year (0) | 2022.10.20 |
---|---|
[백준/파이썬] 9310번 Arithmetic and Geometric Sums (0) | 2022.10.19 |
[백준/파이썬] 15272번 Hissing Microphone (0) | 2022.10.17 |
[백준/파이썬] 8371번 Dyslexia (0) | 2022.10.17 |
[백준/파이썬] 9723번 Digit Count (0) | 2022.10.17 |