UVA - 10340 All in All :简单字符串处理
来源:互联网 发布:淘宝里实名认证在哪 编辑:程序博客网 时间:2024/06/11 04:25
这两天忙着校运会,没更新,现在补回来。
明天就去盛乐了,未来的两天,110米栏and400米栏,祝我好运。
运动会那两天,把笔记本带上,随手更新几个简单题···
202那题 不会做,有点数论的感觉,我短板···
先A了这个简单题····其实不想贴出来的···
仅仅为了更新···博文···而已···
#include <map>#include <cstdio>#include <string>#include <vector>#include <cstring>#include <fstream>#include <iostream>#include <algorithm>using namespace std;int main(){ string S1,S2; while( cin>>S1>>S2 ){ if(S1.length()>S2.length()){ cout<<"No"<<endl; continue; } int i,j; for( i=0,j=0; i<S1.length()&&j<S2.length(); ){ if(S1[i]==S2[j]){ i++;j++; } else{ j++; } } if(i<S1.length()) cout<<"No"<<endl; else cout<<"Yes"<<endl; } return 0;}
0 0
- UVA - 10340 All in All :简单字符串处理
- UVa 10340 All in All (字符串处理&编程技巧)
- UVA - 10340 - All in All (字符串处理!)
- uva 10340 All in All(字符串处理)
- Uva 10340 all in all (字符串匹配)
- UVA 10340- All in All(字符串匹配)
- UVa 10340:All in All(字符串)
- UVa 10340 - All in All
- UVa 10340 - All in All
- uva 10340 - All in All
- uva 10340 - All in All
- UVa 10340 - All in All
- UVA 10340 All in All
- UVa 10340 - All in All
- uva 10340 all in all
- UVa 10340 - All in All
- Uva 10340 ALL IN ALL
- uva 10340 All in All
- 关于菜单和ActionBar的总结
- Cocos Creator问题汇总
- nginx安装配置
- SDUTACM数据结构上机测试2-1:单链表操作A
- nginx基于域名的虚拟主机配置(读书实验笔记)
- UVA - 10340 All in All :简单字符串处理
- Havel算法
- 第七届山东省省赛总结
- 金融科技 Startups (Top 50)(转)
- 【C++笔记】可变参数函数
- 首次使用Android Studio应该做的事
- Android configChanges
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- FastJson.API详解