
noip
_cabbage_
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【NOIP2016】天天爱跑步
天天爱跑步参考了https://www.cnblogs.com/ljh2000-jump/p/6189053.html的博客详细做法都在注释里 //https://www.cnblogs.com/ljh2000-jump/p/6189053.html#include<bits/stdc++.h>using namespace std;const int...原创 2018-09-26 23:04:41 · 202 阅读 · 0 评论 -
洛谷 P1642 规划
题目链接:规划01分数规划证明:https://www.cnblogs.com/BLADEVIL/p/3511013.html我觉得只要感性理解就好了教程:https://www.cnblogs.com/Hallmeow/p/7750483.html题解: 设产值为ci,污染值为pi, 设,转化为:如果,说明k可以进一步增大,所以考虑二分k。于是将物品权值转化为, 并...原创 2018-10-03 18:18:15 · 372 阅读 · 0 评论 -
prufer序列
https://blog.youkuaiyun.com/zchlww/article/details/39737211https://blog.youkuaiyun.com/silence401/article/details/60779496-----http://www.matrix67.com/blog/archives/682原创 2018-11-05 16:01:40 · 364 阅读 · 0 评论 -
NOIP2018
day1 爆炸了希望day2能翻upd:day2貌似苟住了看day1了估计afo了afo了 其实day1还好 day2炸了233好好学文化课了希望大学还能打acm到时候再用这个博客了...原创 2018-11-13 19:58:43 · 299 阅读 · 0 评论 -
fread模板
char buf[1<<24];char *P;void qread(){fread(buf,1,1<<24,stdin);P=&buf[0];}char get_char(){return *P++;}int readint(){ char ch;int x=0,f=1; for(;;){ch=get_char();if(ch=='-'){...原创 2018-11-07 10:59:45 · 293 阅读 · 0 评论 -
状压枚举子集
https://blog.youkuaiyun.com/yanzhenhuai/article/details/81572028https://blog.youkuaiyun.com/jackypigpig/article/details/79660522?tdsourcetag=s_pcqq_aiomsg原创 2018-11-07 09:26:12 · 244 阅读 · 0 评论 -
扫描线
https://www.cnblogs.com/yangsongyi/p/8378629.htmlhttps://www.cnblogs.com/whywhy/p/4214353.html原创 2018-11-06 10:52:35 · 159 阅读 · 0 评论 -
高精度模板
c++没有高精度类,很气,于是弄了一个高精度模板#include <algorithm>#include <cassert>#include <cstdio>#include <cstring>#include <iostream>#include <string>#include <vector>...转载 2018-10-31 15:30:53 · 127 阅读 · 0 评论 -
【noip2014】 解方程
一开始想的是快速幂 然而复杂度不对后来发现秦九韶算法 可以O(n)计算n次多项式https://baike.baidu.com/item/%E7%A7%A6%E4%B9%9D%E9%9F%B6%E7%AE%97%E6%B3%95/449196?fr=aladdin然后就卡着时间过了#include<bits/stdc++.h>using namespace std;...原创 2018-10-23 14:57:15 · 179 阅读 · 0 评论 -
【noip2014】飞扬的小鸟
首先写出 nm^2 的dp,然后化简式子,发现可以降为 nm 的dp (就是背包)#include<bits/stdc++.h>using namespace std;const int maxn=1e4+5,maxm=1005,inf=2e9;int n,m,k;int X[maxn],Y[maxn];struct Plum{ int p,l,h; ...原创 2018-10-22 20:31:43 · 309 阅读 · 0 评论 -
Vim 高亮显示、默认tab缩进数等设置
在linux上存在一个vim的配置文件:.vimrc,通过vim ~/.vimrc 进入配置文件,通过设置syntax on重新开启代码的高亮显示。当然,我们还可以进行其他的设置,具体设置如下所示:set nu #行号set tabstop=4 #一个tab为4个空格长度set ai #设置自动缩进--------------------- 作者:躬...转载 2018-10-18 23:06:36 · 267 阅读 · 0 评论 -
c++ 开栈命令
-Wl,--stack=123456789 (Dev-c++中)#pragma comment(linker, "/STACK:102400000,102400000") (Linux中)devc++如何设置-Wall原创 2018-10-15 14:11:01 · 3681 阅读 · 0 评论 -
【noip】2016 运输计划
可以使用树剖 nlog^2n 卡常后能过 就是码量有点大详解在这里:https://www.luogu.org/blog/29354/solution-p2680#include<bits/stdc++.h>#define R registerusing namespace std;const int maxn=3e5+5;char *P;void QREAD()...原创 2018-10-13 21:36:38 · 637 阅读 · 0 评论 -
【noip】子串
https://www.luogu.org/blog/frankchenfu/solution-p2679https://blog.sengxian.com/solutions/noip-2015-day2主要考察动态规划的思想。设f[i][j][k]f[i][j][k]为串AA匹配到第i - 1i−1个位置(位置从00开始),串BB匹配到j - 1...转载 2018-10-06 21:12:24 · 281 阅读 · 1 评论 -
Codeforces Round #228 (Div. 1)
B. Fox and Minimal path原题链接http://codeforces.com/contest/388/problem/B一道构造题,要想到二进制构造。由原题题解建图方式如下:就是让各层点最短路数目成为二进制 : 【1 1】 【...原创 2019-08-11 23:18:36 · 278 阅读 · 0 评论