测试点#2 #4爆红
#include<bits/stdc++.h>
using namespace std;
int main(){
string a,b;int ans=0,first;
getline(cin,a);
getline(cin,b);
for (int i=0;i<a.length();++i){
a[i]=tolower(a[i]);
}
for (int i=0;i<b.length();++i){
b[i]=tolower(b[i]);
}
a=' '+a+' ';
b=' '+b+' ';
if (b.find(a)==string::npos){
cout<<-1<<endl;
}
first=int(b.find(a));int g=int(b.find(a));
while (first!=string::npos){
++ans;
first=b.find(a,first+1);
}
cout<<ans<<" "<<g<<endl;
return 0;
}