字符串
ybyccyl
这个作者很懒,什么都没留下…
展开
-
uva 10340-all in all
题意:判断a串是不是b串的子串。 思路:用两根指针分别追踪a,b串。 #include #include #include #include #include using namespace std; int main() { string s,t;; int flag; while(cin>>s>>t) { int flag=0;原创 2015-08-08 08:38:56 · 291 阅读 · 0 评论 -
poj 1007 DNA Sorting
Description One measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'', this m原创 2015-08-08 08:57:40 · 359 阅读 · 0 评论 -
UVA 10905 Children's Game
There are lots of number games forchildren. These games are pretty easy to play but not so easy tomake. We will discuss about an interesting game here. Each playerwill be given N positive integer. (S原创 2015-08-08 08:13:49 · 190 阅读 · 0 评论