会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
spytc space
------星空之下,有你陪伴
博客园
首页
新随笔
联系
订阅
管理
2019年3月10日
区间dp学习笔记
摘要: 因为学习区间dp之前我会floyd,所以并不难掌握 石子合并:https://www.luogu.org/problemnew/show/P1880 区间dp要想学好,建议学习floyd
阅读全文
posted @ 2019-03-10 09:16 spytc
阅读(286)
评论(0)
推荐(0)
2019年3月5日
均分纸牌题解
摘要: https://www.luogu.org/problemnew/show/P1031 题目是个水题,但是我觉得其思想还是很好的 首先是个求平均数,这个没什么好说的 其次就用了个类似差分的思想,将离平均数的个数用正负来表示,正的是需要转移给别人的,负的是需要被转移的 然后就用了前缀和,更准确来说用了
阅读全文
posted @ 2019-03-05 23:10 spytc
阅读(177)
评论(0)
推荐(0)
2019年2月24日
未解决的树状数组差分(改变区间,求单点值)
摘要: // luogu-judger-enable-o2 #include #define inf 500001 #define lll long long int using namespace std; long c[inf],a,n,m,k,xx,nn; int lowbit(int x){ return x&(-x);//求X二进制下从右到左第一个1的所对应的十进制下的值 } void...
阅读全文
posted @ 2019-02-24 16:02 spytc
阅读(204)
评论(0)
推荐(0)
2019年2月6日
喜欢的妹纸
摘要: 当然还有 好吧是有点不太和场景,前面那么多漂亮妹纸,后面这个。。。。。。。 但我也懒得撤回了。。。
阅读全文
posted @ 2019-02-06 21:12 spytc
阅读(79)
评论(0)
推荐(0)
喜欢的图片
摘要:
阅读全文
posted @ 2019-02-06 21:07 spytc
阅读(105)
评论(0)
推荐(0)
2019年2月5日
强连通分量大佬博客
摘要: https://www.cnblogs.com/five20/p/7594239.html
阅读全文
posted @ 2019-02-05 23:33 spytc
阅读(90)
评论(0)
推荐(0)
拓扑排序的vector
摘要: #include <bits/stdc++.h>#define inf 1e9#define lll long long intusing namespace std;vector <int> q[100]; int n,rudu[100],p,ans[100],k;bool f[100];queu
阅读全文
posted @ 2019-02-05 18:27 spytc
阅读(181)
评论(0)
推荐(0)
2019年2月3日
从一到数论题引发的思考(原来平常的习惯对程序的运行时间竟然有如此的的影响)
摘要: https://www.luogu.org/problemnew/show/P1134 先贴一贴战果 14分代码 好咱们在看四十几分的 #include <bits/stdc++.h>#define inf 0x7f7fusing namespace std;long long n,m,ans,co
阅读全文
posted @ 2019-02-03 15:40 spytc
阅读(138)
评论(0)
推荐(0)
2019年2月2日
c++algothim库函数(转载
摘要: https://blog.csdn.net/chenyufeng1991/article/details/52648523
阅读全文
posted @ 2019-02-02 20:33 spytc
阅读(330)
评论(0)
推荐(0)
cmath常用函数
摘要: ceil(x) 向上取整 ceil(9.2)=10.0 cos(x) x的余弦 cos(0.0)=1.0 exp(x) 指数函数,e的x次方 exp(1.0)=2.71828 fabs(x) x的绝对值 fabs(-5)=5 floor(x) 向下取整 floor(9.2)=9 fmod(x,y)
阅读全文
posted @ 2019-02-02 14:21 spytc
阅读(1113)
评论(0)
推荐(0)
下一页
公告