![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
链表
里阿奴摩西
这个作者很懒,什么都没留下…
展开
-
[贪心 堆 链表] BZOJ 3502 PA2012 Tanie linie & 51Nod 1052 最大M子段和
做法同2280 1150 多年前的代码丑 #include #include #include #include using namespace std; typedef long long ll; inline char nc() { static char buf[100000],*p1=buf,*p2=buf; if (p1==p2) { p2=(p1=buf原创 2016-05-02 13:53:44 · 580 阅读 · 0 评论 -
[DP || 贪心 链表] BZOJ 4576 [Usaco2016 Open]262144 & BZOJ 4580 [Usaco2016 Open]248
有意思的一道题 官网上的做法是f[i][j]表示从j出发能够合并出i的末端 不存在则为0 然后就可以转移了 这有什么好呢 短 #include #include #include using namespace std; inline char nc(){ static char buf[100000],*p1=buf,*p2=buf; if (p1==p2) { p2=原创 2016-10-23 12:14:26 · 433 阅读 · 0 评论 -
[链表 杂题] BZOJ 4432 [Cerc2015]Greenhouse Growth
只有我觉得神题吗 比C难度还大? 看懂了也不会写 不会告诉你我是看着标程写的#include<cstdio> #include<cstdlib> #include<algorithm> #include<vector> #define pb push_back using namespace std;inline char nc(){ static char buf[10000原创 2017-04-13 17:51:05 · 859 阅读 · 0 评论