首页 > 学院 > 开发设计 > 正文

UVa-10304 All in All

2019-11-14 12:08:19
字体:
来源:转载
供稿:网友
#include<iostream>#include<cstring>using namespace std;int main(){	char s[100001],t[100001];	int k;	while(cin>>s>>t){		k=0;		for(int i=0;i<strlen(t);i++){			if(s[k]==t[i]) k++;		}			if(strlen(s)<=strlen(t)&&k==strlen(s)) cout<<"Yes"<<endl;		else cout<<"No"<<endl;	}	return 0;}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表