Cod sursa(job #1923215)
| Utilizator | Data | 10 martie 2017 21:27:27 | |
|---|---|---|---|
| Problema | Potrivirea sirurilor | Scor | 14 |
| Compilator | cpp | Status | done |
| Runda | Arhiva educationala | Marime | 0.2 kb |
#include<fstream>
int x,p,s[1<<22];std::string c,a,b="strmatch.";main(){std::ofstream g(b+"out");for(std::ifstream(b+"in")>>a>>b;p=b.find(a,p)+1;s[x++]=p-1);for(g<<x<<c;p<x&p<1000;g<<s[p++]<<' ');}
