문제링크: 크기가 작은 부분 문자열
✍🏻 Information
| content | |
|---|---|
| 언어 | python |
| 난이도 | ⭐️ |
| 풀이시간 | 4분 |
| 제출횟수 | 2 |
| 인터넷검색유무 | no |
🍒 My Code
def solution(t, p):
answer = 0
p_len = len(p)
for i in range (len(t)-p_len+1):
_t=int(t[i:i+p_len])
if _t<=int(p):
answer+=1
return answer
💡 What I learned