摘要: 题目链接:http://acm.hust.edu.cn/vjudge/contest/128687#problem/G Description 问题很简单,给你一个字符串s,问s的子串中不包含s1,s2...sn的最长串有多长。 Input 输入包含多组数据。第一行为字符串s,字符串s的长度1到10 阅读全文
posted @ 2016-08-22 21:49 爱记录一切美好的微笑 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Description Today is Gorwin’s birthday. So her mother want to realize her a wish. Gorwin says that she wants to eat many cakes. Thus, her mother takes 阅读全文
posted @ 2016-08-22 18:21 爱记录一切美好的微笑 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 题目链接: http://acm.split.hdu.edu.cn/showproblem.php?pid=4994 Description Nim is a mathematical game of strategy in which two players take turns removing 阅读全文
posted @ 2016-08-22 17:23 爱记录一切美好的微笑 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Description 985有n个正整数,他想知道存在多少个不同的因子对(a[i], a[j])使得 1 <= i, j <= n && i != j && a[j] % a[i] == 0,其中i和j是元素的下标。 特别地,他认为(a[i],a[j])与(a[j],a[i])是一样的因子对。 9 阅读全文
posted @ 2016-08-22 16:12 爱记录一切美好的微笑 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5652 Mean: 输入描述 输出描述 Sample Input 1 4 6 011010 000010 100001 001000 7 0 3 1 5 1 3 0 0 1 2 2 4 2 1 Sampl 阅读全文
posted @ 2016-08-22 11:13 爱记录一切美好的微笑 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 题目链接: http://acm.split.hdu.edu.cn/showproblem.php?pid=2802 Problem Description Giving the N, can you tell me the answer of F(N)? Input Each test case 阅读全文
posted @ 2016-08-22 09:55 爱记录一切美好的微笑 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 描述 LT最近一直在无限循环薛之谦的歌,简直都中毒了!可是呢…他的歌LT还是不会唱(其实不止他的歌LT不会唱,所有人的歌LT都不会唱…因为LT是标准的音痴)可是LT又很喜欢唱歌(所以LT不仅是音痴还是音痴)…没错,这对于LT的室友来说简直是噩梦… 现在呢,LT有N次操作,每次操作只会有两种可能: I 阅读全文
posted @ 2016-08-22 09:25 爱记录一切美好的微笑 阅读(170) 评论(0) 推荐(0) 编辑