格式
文章平均质量分 79
ybyccyl
这个作者很懒,什么都没留下…
展开
-
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 givenN positive integer. (S原创 2015-08-08 08:13:49 · 203 阅读 · 0 评论 -
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 · 303 阅读 · 0 评论 -
poj 1007 DNA Sorting
DescriptionOne 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 · 372 阅读 · 0 评论 -
UVA 11729 Commando War
#include #include #include #include #include using namespace std;struct Job{ int b, j;}job[1010];bool cmp(Job a, Job b){ if(a.j > b.j) return 1; else return 0;原创 2015-08-03 08:46:46 · 347 阅读 · 0 评论 -
CodeForces 2A
The winner of the card game popular in Berland "Berlogging" is determined according to the following rules. If at the end of the game there is only one player with the maximum number of points, he is原创 2015-08-03 08:59:14 · 402 阅读 · 0 评论