摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3003题目大意:一种动物身上有n种不同的皮肤,每种皮肤有透明很不透明两种状态,经过一天的日晒,透明的可以变成不透明,不透明的可以变成透明.刚出生的动物的皮肤是不透明的,还有只有在皮肤外层是透明的时候才可以... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1399题目大意:找到满足i*i*i+j*(j+1)*(j+2)/6形式且小于等于n的最大值。 1 #include 2 #include 3 4 using namespace std; 5 6 in... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1711题目大意:在母链中找到子链的位置,输出开始的位置。 1 #include 2 #include 3 using namespace std; 4 int lens,lenc,next[10000... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1686题目大意:寻找子链在母链中出现的次数。 1 #include 2 #include 3 #include 4 using namespace std; 5 int next[10010],su... 阅读全文