CQUPTdiv2二分与三分
风中一颗松
慢慢学,慢慢看
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
F - Elevator Stopping Plan
F - Elevator Stopping Plan题目意思:某个抠门的公司只有一个电梯, 现在有n 个人从1楼, 他们有各自想要到达的楼层, 然后电梯每上一楼需要4 s, 每在一个楼层开门需要10s, 然后然爬楼梯的话需要20s一楼。问, 如何用最短的时间让所有人都到达各自想要到的楼层。解题思路:本题解题思路为贪心算法+最小二分法。在本题中,花费时间最短为0,最长时间为在每层楼都停留一下的时间。...原创 2018-02-26 21:13:56 · 340 阅读 · 0 评论 -
A - Cable master
A - Cable master Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It...原创 2018-02-15 20:33:08 · 356 阅读 · 0 评论 -
B - Brainman
B - Brainman Background Raymond Babbitt drives his brother Charlie mad. Recently Raymond counted 246 toothpicks spilled all over the floor in an instant just by glancing at them. An...原创 2018-02-15 20:38:02 · 483 阅读 · 0 评论 -
E - Squares
E - Squares A square is a 4-sided polygon whose sides have equal length and adjacent sides form 90-degree angles. It is also a polygon such that rotating about its centre by 90 degrees giv...原创 2018-02-24 15:57:46 · 699 阅读 · 0 评论 -
AtCoder Grand Contest 023 A - Zero-Sum Ranges
A - Zero-Sum RangesTime limit : 2sec / Memory limit : 256MB Score : 200 pointsProblem StatementWe have an integer sequence A, whose length is N.Find the number of the non-empty contiguous subsequence...原创 2018-04-29 00:58:40 · 357 阅读 · 0 评论
分享