ac 大严 · 发布于 2026-07-24 · 浏览 116 回复 0 include<bits/stdc++.h> using namespace std; int main(){ string s,t; getline(cin,s); getline(cin,t); int x=0; int a=0; while((t.find(s,x)!=-1)) { a++; x=t.find(s,x)+1; } cout<<a; return 0; }