poj 1926 All in all
来源:互联网 发布:县医院 网络图片图 编辑:程序博客网 时间:2024/06/05 02:18
好喜欢的一个水题啊,就是判断 前一个字符串是否是第二个字符串的字串~~~~~~~,不一定连续
#include<stdio.h>#include<string.h>int main(){ char s1[100010],s2[100010]; while(~scanf("%s%s",s1,s2)) { int len = strlen(s2); int t=0; for(int i=0;i<len;i++) { if(s1[t]==s2[i]) t++; } if(s1[t]=='\0') printf("Yes\n"); else printf("No\n"); } return 0;}
0 0
- poj 1926 All in all
- poj all in all
- poj All in All
- All in All POJ
- 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 1396All 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
- iOS GCD实现
- 如何用java 5分钟实现一个最简单的mysql代理服务器?
- 调用系统功能,邮件发送方式,各种文件打开方法-Intent的详解
- POJ 2186
- Office 可以插入和保存的图形文件类型
- poj 1926 All in all
- 在 Sql Server 中实现 UrlDecode
- HDU-1874-畅通工程续【最短路】
- eclipse使用
- 12.屏幕高斯模糊
- 自定义view的一些记录
- scanf和gets的区别
- leetcode Valid Anagram
- python 登录接口测试