UVA10340 All in All(C++)

  • 题目链接
  • AC代码
#include 
#include 
using namespace std;
int main(int argc, char *argv[])
{
	string s,t;
	while(cin>>s>>t)
	{
		int n = 0;
		for(int i = 0; i < t.length() && n < s.length(); i++) if(t[i] == s[n]) n++;
		cout<<((n == s.length())?"Yes":"No")<

 

你可能感兴趣的:(UVA,UVA,10340,UVA10340,C++,All,in,All)