摘要:
老丁的序列 题意:序列每天都会复制,但复制方法是每天得到一个以左右两边为原序列中间插入一个序列中没有出现的最小正奇数,让我们求第n... 阅读全文
摘要:
Prime Path The ministers of the cabinet were quite upset by the me... 阅读全文
摘要:
Find The Multiple Given a positive integer n, write a program to f... 阅读全文
摘要:
Catch That Cow Farmer John has been informed of the location of a ... 阅读全文
摘要:
Dungeon Master You are trapped in a 3D dungeon and need to find th... 阅读全文
摘要:
棋盘问题 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同... 阅读全文
摘要:
埃式筛法详解 这个算法简单,也很好理解。通常用于需一次性求解判断大量数是否为质数的问题,我们可以利用埃式筛法打好素数表即可。 埃拉托... 阅读全文
摘要:
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=2063 过山车 Time Limit... 阅读全文
摘要:
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=2062 Subset sequen... 阅读全文
摘要:
最近刷到了一道有趣的DP算法题,是多状态决策的典型例题。就想着记录一下,分享这解题过程给你们,愿你们都有收获。(我写的都很仔细,包括... 阅读全文