Pagini recente » Cod sursa (job #2291413) | Cod sursa (job #1529117) | Cod sursa (job #1622678) | Cod sursa (job #2467829) | Cod sursa (job #2617267)
#include <bits/stdc++.h>
using namespace std;
#define ll long long
string a,b;
int main()
{
ifstream cin("strmatch.in");
ofstream cout("strmathc.out");
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin>>a>>b;
int poz = b.find(a);
if (poz!=-1) cout<<poz<<" ";
while(1){
poz = b.find(a,poz+1);
if (poz!=-1) cout<<poz<<" ";
else break;
}
return 0;
}