-Code
n = int(input())
s = input()
ioi = "IOI"
position = 0
for w in s:
if w == ioi[position]:
position += 1
if position == 3:
break
print("Yes" if position == 3 else "No")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 27960번 사격 내기 (0) | 2023.07.09 |
---|---|
[백준/파이썬] 14547번 X X glued (0) | 2023.07.08 |
[백준/파이썬] 17851번 This Problem’s a Slam Dunk (0) | 2023.07.06 |
[백준/파이썬] 15296번 Sum Squared Digits Function (0) | 2023.07.05 |
[selenium] find_element_by_* (0) | 2023.07.04 |