![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维水题
__wwwwn
这个作者很懒,什么都没留下…
展开
-
Pupu HDU - 3003 快速幂取模&思维&&打表
There is an island called PiLiPaLa.In the island there is a wild animal living in it, and you can call them PuPu. PuPu is a kind of special animal, infant PuPus play under the sunshine, and adult PuPu...原创 2019-02-12 15:01:54 · 153 阅读 · 0 评论 -
hdu2868 Neighbor Friend floyd&&思维
Suppose we sort N persons in a line according to their heights,we are curious about the Neighbor Friend. A pair of Neighbor Friend is two person next to each other in the line,ignoring the order(ie (...原创 2019-02-01 14:54:15 · 423 阅读 · 0 评论 -
H - 小t的游戏 HDU - 3067 规律&&思路
小t有点神经质,喜欢发明一些稀奇古怪的游戏,比如说左手和右手打架就是他发明的。 这个周末,小t又发明了一个有趣的硬币游戏:小t手里有6枚硬币,他把硬币分成了两堆,一左一右并排堆放,一堆2个,一堆4个。然后他开始从这两个堆中各取出1个硬币,再组成一个新的堆放在最右边。用(2,4)表示初始两堆,于是作下抽象,第一次操作后(2,4)变成了(1,3,2)。小t继续操作,他从这三堆中继续各取出1个硬币,组...原创 2019-02-28 22:14:20 · 269 阅读 · 0 评论 -
华华听月月唱歌 区间贪心
链接:https://ac.nowcoder.com/acm/contest/392/A 来源:牛客网 题目描述 月月唱歌超级好听的说!华华听说月月在某个网站发布了自己唱的歌曲,于是把完整的歌曲下载到了U盘里。然而华华不小心把U盘摔了一下,里面的文件摔碎了。月月的歌曲可以看成由1到N的正整数依次排列构成的序列,它现在变成了若干个区间,这些区间可能互相重叠。华华想把它修复为完整的歌曲,也就是...原创 2019-03-12 21:42:24 · 148 阅读 · 0 评论 -
codeforces 1175D 后缀数组
题意:将数组分成连续的k个集合,然后定义花费为 每个集合的和*集合的下标求最大花费 题解:对应的花费就是后缀数组选出k个来加和(画画图看看),其中sum[1]必须包括,剩下的就是选出k-1个后缀数组来加和就是对应的花费了 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int ma...原创 2019-07-16 23:05:35 · 235 阅读 · 0 评论 -
2019牛客暑期多校训练营(第三场)H 思维
题意:找出一条直线,要求将所有点平分到两个平面内且直线不能过其中一个点 题解:按照x和y从小到大排序,如果左边中间那个店的正好在最上面,那直接切一下他右边就可以了 如果左边中间那个点上面还有点。。。就得算一下中间轴然后左右偏一下就可以。。。其实也不难 傻逼写了好几个小时的极角排序 #include <bits/stdc++.h> using namespace std; #d...原创 2019-07-25 21:18:21 · 156 阅读 · 0 评论