int main() { int t; cin >> t; getchar(); while (t–) { string s1, s2; getline(cin, s1); getline(cin, s2); int pos = s1.find(s2); if (pos != string::npos) { cout << “Yes” << endl; } else { cout << “No” << endl; } } return 0; }
int main() {
int t;
cin >> t;
getchar();
while (t–) {
string s1, s2;
getline(cin, s1);
getline(cin, s2);
int pos = s1.find(s2);
if (pos != string::npos) {
cout << “Yes” << endl;
}
else {
cout << “No” << endl;
}
}
return 0;
}