20分求助
查看原帖
20分求助
1167261
wwwggg楼主2024/3/3 18:59

看不出来哪里错了

n=input().lower()
m=list(map(str,input().split()))
cout=0
a=[]

for ct2,i in enumerate(m):
    if i.lower()==n:
        cout+=1
        a.append(ct2)

if a==[]:
    print(-1)
else:
    print(cout,a[0])
2024/3/3 18:59
加载中...