上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页
摘要: Description Let's play a traditional game Nim. You and I are seated across a table and we have a hundred stones on the table (we know the number of st 阅读全文
posted @ 2018-09-23 18:03 zZhBr 阅读(278) 评论(0) 推荐(0) 编辑
摘要: The new ITone 6 has been released recently and George got really keen to buy it. Unfortunately, he didn’t have enough money, so George was going to wo 阅读全文
posted @ 2018-09-23 17:29 zZhBr 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Description 勤奋的Farmer John想要建造一个四面的栅栏来关住牛们。他有一块长为n(4<=n<=2500)的木板,他想把这块本板 切成4块。这四块小木板可以是任何一个长度只要Farmer John能够把它们围成一个合理的四边形。他能够切出多少 种不同的合理方案。注意: *只要大木板 阅读全文
posted @ 2018-09-22 20:32 zZhBr 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Quite recently a creative student Lesha had a lecture on trees. After the lecture Lesha was inspired and came up with the tree of his own which h 阅读全文
posted @ 2018-09-22 20:11 zZhBr 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 题目限制 时间限制 内存限制 评测方式 题目来源 1000ms 131072KiB 标准比较器 Local 题目背景 Bob最近迷上了一个博彩游戏…… 题目描述 这个游戏的规则是这样的:每花一块钱可以得到一个随机数R,花上N块钱就可以得到一个随机序列;有M个序列,如果某个序列是产生的随机序列的子串, 阅读全文
posted @ 2018-09-22 19:43 zZhBr 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 树形动归,期望 阅读全文
posted @ 2018-09-17 19:31 zZhBr 阅读(180) 评论(0) 推荐(0) 编辑
摘要: DP 阅读全文
posted @ 2018-09-17 17:12 zZhBr 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 拓扑排序+二分答案。 阅读全文
posted @ 2018-09-16 20:20 zZhBr 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 二分+哈希。 阅读全文
posted @ 2018-09-15 22:20 zZhBr 阅读(141) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-09-15 14:46 zZhBr 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 矩阵乘法。 阅读全文
posted @ 2018-09-13 20:30 zZhBr 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 线段树合并 阅读全文
posted @ 2018-09-13 07:58 zZhBr 阅读(297) 评论(2) 推荐(0) 编辑
摘要: 线段树合并 阅读全文
posted @ 2018-09-12 10:37 zZhBr 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 题目背景 蛟川书院的一道练习题QAQ 题目描述 如果一个数的所有连续三位数字都是大于100的素数,则该数称为三素数数。比如113797是一个6位的三素数数。 输入输出格式 输入格式: 一个整数n(3 ≤ n ≤ 10000),表示三素数数的位数。 输出格式: 一个整数,表示n位三素数的个数m,要求输 阅读全文
posted @ 2018-09-10 20:10 zZhBr 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 组合数学 阅读全文
posted @ 2018-09-10 19:06 zZhBr 阅读(175) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页