水题,我A水题我快乐,哈哈,不过两次提交的时间分别是16ms和0ms,晕了

 

#include <iostream>
using namespace std;
int main()
{
char s[100005],t[100005],*a,*b;
while (scanf("%s %s",s,t)==2)
{
a
=s,b=t;
while(*a&&*b)if(*a==*b++)a++;
(
*a)?printf("No\n"):printf("Yes\n");
}
return 0;
}

 

 

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2022-02-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
猜你喜欢
  • 2021-07-28
  • 2021-08-23
  • 2022-03-07
  • 2022-12-23
  • 2022-03-02
  • 2021-10-17
  • 2021-12-03
相关资源
相似解决方案