贪心
墓菱
这个作者很懒,什么都没留下…
展开
-
Cake(2017 ACM/ICPC Asia Regional Beijing Online)
To celebrate that WF-2018 will be held in PKU, Alice, Bob, and Cate are asked to make N cakes.Every cake i needs to go through 3 steps in restrict order:Alice mixes flour and water for ai minutes...原创 2018-08-09 20:51:48 · 262 阅读 · 0 评论 -
Walking Between Houses(Codeforces-1015D)
题目链接题意:在一条数轴上从从1~n排列着n座房子,每次必须移动,移动的距离为两点坐标之差的绝对值,问能否在k回合里一共移动s距离。思路:一道略带贪心的思维题,首先把k>s和k*(n-1)#pragma comment(linker, "/STACK:1024000000,1024000000")#include <vector>#includ原创 2018-08-01 01:04:37 · 588 阅读 · 0 评论