https://www.acmicpc.net/problem/6550
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
def sol(s, t):
check = 0
for i in t:
if s[check] == i:
check += 1
if check == len(s):
return 'Yes'
return 'No'
if __name__ == '__main__':
while True:
try:
s, t = input().split()
print(sol(s, t))
except:
break
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
leetcode 2965. Find Missing and Repeated Values (0) | 2023.12.27 |
---|---|
백준 4388 받아올림 (0) | 2023.12.27 |
백준 11723 집합 (1) | 2023.12.23 |
백준 30045 ZOAC 6 (0) | 2023.12.20 |
백준 30468 호반우가 학교에 지각한 이유 1 (0) | 2023.12.20 |
댓글