Cod sursa(job #2429423)
| Utilizator | Data | 9 iunie 2019 16:39:49 | |
|---|---|---|---|
| Problema | Potrivirea sirurilor | Scor | 0 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva educationala | Marime | 0.19 kb |
#include<fstream>
int x,p,s[1<<22];std::string a,b="strmatch.";main(){std::fstream g(b+"out");for(std::fstream(b+"in")>>a>>b;p=b.find(a,p)+1;s[x++]=p-1);for(g<<x<<'\n';p<x&p<1000;g<<s[p++]<<' ');}