← Back to List

26041번: 비슷한 전화번호 표시 ↗

Solutions

Python 3
137 B | 137 chars
l = input().split()
b = input()

ans = 0

for a in l:
  if len(a) <= len(b):
    continue
  if a[:len(b)] == b:
    ans += 1

print(ans)