第9个点过不了……
#include<bits/stdc++.h>
using namespace std;
int main()
{
string ch,s;
getline(cin,ch);
getline(cin,s);
for(int i=0;i<=ch.size()-1;i++)
ch[i]=tolower(ch[i]);
for(int i=0;i<=s.size()-1;i++)
s[i]=tolower(s[i]);
ch=" "+ch+" ";
s=" "+s+" ";
int t=0,cn;
if(s.find(ch)==-1)
cout<<-1<<endl;
else
{
int i=0;
while(s.find(ch,i)!=-1)
{
int cnt=s.find(ch,i);
t++;
i=cnt+1;
if(t==1)
cn=cnt;
}
cout<<t<<" ";
cout<<cn<<endl;
}
return 0;
}