上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 【题目描述】 It's a game about rolling a box to a specific position on a special plane. Precisely, the plane, which is composed of several unit cells, is a 阅读全文
posted @ 2018-08-24 17:07 飞飞翔滴少年 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 作为惩罚,GY被遣送去帮助某神牛给女生送礼物(GY:貌似是个好差事)但是在GY看到礼物之后,他就不这么认为了。某神牛有N个礼物,且异常沉重,但是GY的力气也异常的大( _ b),他一次可以搬动重量和在w(w define ll long long using namespace std 阅读全文
posted @ 2018-08-24 11:09 飞飞翔滴少年 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 An addition chain for n is an integer sequence with the following four properties: a0 = 1 am = n a0 include using namespace std; int n,deep; in 阅读全文
posted @ 2018-08-23 18:11 飞飞翔滴少年 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the 阅读全文
posted @ 2018-08-23 11:23 飞飞翔滴少年 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 In the game of Sudoku, you are given a large 9 × 9 grid divided into smaller 3 × 3 subgrids. For example, Given some of the numbers in the grid 阅读全文
posted @ 2018-08-22 22:52 飞飞翔滴少年 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 给定一张N个点M条边的有向无环图,分别统计从每个点出发能够到达的点的数量。N,M≤30000。 【题目链接】 "2101 可达性统计" 【算法】 拓扑排序之后逆序计算(感觉dfs更好写而且应该更快一点), bitset 状态压缩模拟集合的并操作。 【代码】 cpp include us 阅读全文
posted @ 2018-08-21 21:53 飞飞翔滴少年 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 在一个 2 维平面上有两条传送带,每一条传送带可以看成是一条线段。两条传送带分别为线段 AB 和线段 CD。lxhgww 在 AB上的移动速度为 P ,在 CD 上的移动速度为 Q,在平面上的移动速度 R。现在 lxhgww 想从 A 点走到 D 点,他想知道最少需要走多长时间。 【题 阅读全文
posted @ 2018-08-20 21:43 飞飞翔滴少年 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 相比 wildleopard 的家,他的弟弟 mildleopard 比较穷。他的房子是狭窄的而且在他的房间里面仅有一个灯泡。每天晚上,他徘徊在自己狭小的房子里,思考如何赚更多的钱。有一天,他发现他的影子的长度随着他在灯泡和墙壁之间走到时发生着变化。一个突然的想法出现在脑海里,他想知道 阅读全文
posted @ 2018-08-20 17:53 飞飞翔滴少年 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 一个点每过一个单位时间就会向 4 个方向扩散一个距离,如图所示:两个点 a 、b 连通,记作 e(a,b),当且仅当 a 、b 的扩散区域有公共部分。连通块的定义是块内的任意两个点 u、v 都必定存在路径 e(u,a0),e(a0,a1),…e(ak,v)。 给定平面上的 n 个点,问 阅读全文
posted @ 2018-08-20 00:04 飞飞翔滴少年 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 明明做作业的时候遇到了 n 个二次函数 S​i​​(x)=ax​2​​+bx+c,他突发奇想设计了一个新的函数 F(x)=max{Si(x)},i=1…n。 明明现在想求这个函数在[0,1000] 的最小值,要求精确到小数点后四位,四舍五入。 【题目链接】 https://loj.ac 阅读全文
posted @ 2018-08-19 20:18 飞飞翔滴少年 阅读(241) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页