abc167_a - Registration
28 Jan 2021 — Tags: None
Click to show code.
using namespace std;
int main(void)
{
string s, t;
cin >> s >> t;
bool ok = s == t.substr(0, t.size() - 1);
cout << (ok ? "Yes" : "No") << endl;
return 0;
}