poj 1936 All in All
来源:互联网 发布:电子相册网站源码 编辑:程序博客网 时间:2024/06/07 16:53
#include <iostream>#include <string.h>#include <stdio.h>#define MAXN 60 /* s1在s2中就行 */using namespace std; int main() { int i,j; char s1[100000],s2[100000]; while(cin>>s1>>s2) { int len1=strlen(s1); int len2=strlen(s2); i=0; j=0; for(j=0;j<len2;j++) { if(s1[i]==s2[j])i++; if(i==len1){printf("Yes\n");break;} } if(i<len1)printf("No\n"); memset(s1,'\0',sizeof(s1)); memset(s2,'\0',sizeof(s2)); } return 0; }
0 0
- poj 1936 "all in all"
- poj 1936 All in All
- POJ 1936 All in All
- poj 1936 All in All
- POJ 1936 all in all
- POJ 1936 All in All
- POJ 1936 All in All
- POJ 1936 All in All
- POJ-1936-All in All
- poj 1936 all in all
- poj 1936 All in All
- POJ 1936 All in ALL
- poj 1936 All in All
- poj 1936 All in All
- POJ 1936 All in All
- All in All(poj 1936)
- poj 1936 All in All
- poj 1936 All in All
- c语言学习日志 day4
- 脚本—shell
- 基于Matlab的神经网络结合遗传算法在非线性函数极值寻优中的应用
- 7.5.6
- error LNK2019:无法解析的外部符号 public: void(找前面的函数)
- poj 1936 All in All
- java语言基础
- 转 Android 带清除功能的输入框控件ClearEditText,仿IOS的输入框 登陆界面
- cronolog分割tomcat的catalina.out日志
- 陈省身文集53——大范围微分几何若干新观点
- LaTeX —— 字体
- html元素按照功能排序-有些没有按照w3c分类
- 仿《雷霆战机》飞行射击手游开发--项目总览
- 模版方法模式