首页 > 其他 > 详细

POJ-1936-All in All

时间:2015-02-09 10:47:24      阅读:234      评论:0      收藏:0      [点我收藏+]

题目:POJ-1936-All in All

水题。

 1 #include <iostream>
 2 #include<stdio.h>
 3 #include<stdlib.h>
 4 #include<string.h>
 5 #include<math.h>
 6 #include<algorithm>
 7 
 8 using namespace std;
 9 
10 char s[100010],t[100010];
11 
12 int main()
13 {
14     int i,j;
15     while(scanf("%s%s",s,t)!=EOF)
16     {
17         i=0;
18         for(j=0;j<strlen(t);j++)
19         {
20             if(s[i]==t[j]) ++i;
21         }
22         if(i==strlen(s)) printf("Yes\n");
23         else printf("No\n");
24     }
25     return 0;
26 }

 

POJ-1936-All in All

原文:http://www.cnblogs.com/alohagin/p/4280864.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!