#20876: 為什麼錯(80%)


youngyoung (06 蘇昱揚 306)


FindInput = input().lower()
Find = ' ' + FindInput + ' '
FindList = input().lower()
List = ' ' + FindList + ' '
Times = List.count(Find)
FirstPlace = List.find(Find)
if Times == 0:
print(-1)
else:
print(f'{Times} {FirstPlace}')
#39078: Re: 為什麼錯(80%)


antarcticmi@gmail.com (小行星)


FindInput = input().lower()
Find = ' ' + FindInput + ' '
FindList = input().lower()
List = ' ' + FindList + ' '
Times = List.count(Find)
FirstPlace = List.find(Find)
if Times == 0:
print(-1)
else:
print(f'{Times} {FirstPlace}')

是否是下列情況:當單字連續出現時

at

As at at