poj1936 All in All
来源:互联网 发布:永恒之塔捏脸数据5.3 编辑:程序博客网 时间:2024/04/29 10:03
链接:http://poj.org/problem?id=1936
题意:哎。水题。只能做做水题啊。
#include<iostream>#include<cstring>#define MAX 100010using namespace std;int main(){char s[MAX],t[MAX];int len1,len2,i,j;bool flag;while(cin>>s>>t){len1=strlen(s);len2=strlen(t);j=0;flag=false;for(i=0;i<len2;i++){if(t[i]==s[j])j++;if(j==len1){ flag=true; break;}}if(flag)cout<<"Yes"<<endl;else cout<<"No"<<endl;} return 0;}
- poj1936 All in All
- POJ1936--All in All
- POJ1936:All in All
- POJ1936《All in All》
- poj1936 All in All
- poj1936 All in All
- poj1936--All in All
- poj1936 All in All
- poj1936 All in All
- POJ1936-All in All
- poj1936 All in All
- All in All POJ1936
- POJ1936——All in All
- POJ1936-All in All(java版)
- POJ1936 All in All 字符串水题
- POJ1936-All-in-All(子序列)
- POJ1936——All in All
- UVA10340 POJ1936 ZOJ1970 All in All
- shell脚本中echo显示内容带颜色的实现方法
- zju2812
- faultDetail = "The expected argument types are (...) but the supplied types were
- oracle的表的数据管理1 -- 增删改
- 经典面试问题回答思路【网上收集整理的】
- poj1936 All in All
- 如何在Ubuntu 11.10下成功安装Java
- zju2736
- Java List, Set, Map, 数组间的相互转换
- javascript之表单操作
- 解graph model
- ubuntu 13.10 不显示时间 解决方案
- 在Visual C++中使用内联汇编
- try catch throw异常处理