字符串处理
一只会旅行的猫
这个作者很懒,什么都没留下…
展开
-
hdu 4550 卡片游戏
http://acm.hdu.edu.cn/showproblem.php?pid=4550 分析:就是前导可恶的0,然后利用字符串,大于序列第一个数的放右边,反之放左边( #include #include #include #include using namespace std; int main() { string str,card; char t; int T,i,j,len原创 2013-07-23 20:03:28 · 620 阅读 · 0 评论 -
hdu 3633
http://acm.hdu.edu.cn/showproblem.php?pid=1000 枚举~ #include #include using namespace std; const int N=100005; char str[N]; int main() { int h,t,i,n,flag,num1,num2,count1,count2; while(scanf("%d",&原创 2013-05-26 23:30:01 · 5199 阅读 · 0 评论 -
【KMP】hdu 1711 Number Sequence
http://acm.hdu.edu.cn/showproblem.php?pid=1711 #include #include using namespace std; const int NM=1000005; int a[NM],b[10005],next[10005],x,y; void get_nextval() { int i,j; j=0; ne原创 2013-11-03 16:37:04 · 515 阅读 · 0 评论 -
ZOJ 1181 Word Amalgamation(单词融合)
http://acm.zju.edu.cn/onlinejudge/showRuns.do?contestId=1&search=false&firstId=3307838&lastId=-1&problemCode=&handle=&idStart=&idEnd= 题意:寻找字典中是否有匹配的词,匹配原则:单词每个字符的顺序可以不同 #include #include #include原创 2013-05-21 21:50:43 · 1010 阅读 · 0 评论