Tag: problem: (B) Petya and Exam Solve In C/C++

Codeforces Round #425 (Div. 2), problem: (B) Petya and Exam Solution In C/C++

#include<iostream> #include<cstdio> #include<cstring> using namespace std; string s,t; int q; string str; int w; bool g; int main() { cin>>s; for(int i=0;i<s.size();i++) { g-'a']=true; } cin>>t; int lt=t.size(); int s=0; w=-1; for(int i=0;i<lt;i++) { if(t=='*')w=i;else s++; } scanf("%d",&q); while(q--) { cin>>str; int l=str.size(); if(l<s || (w==-1...

Want to stay up to date with the latest news?

We would love to hear from you! Please fill in your details and we will stay in touch. It's that simple!