Cod sursa(job #2595593)
Utilizator | Data | 7 aprilie 2020 22:55:16 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Scor | 80 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.2 kb |
#import<bits/stdc++.h>
int x,p,s[1<<22];std::string 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<<'\n';p<x&p<1000;g<<s[p++]<<' ');}