摘要: /*暴力50*/ #include #include #include #define maxn 100010 #define ll long long using namespace std; ll n,k,f[maxn][110],a[maxn],ans; ll init(){ ll x=0,f=1;char s=getchar(); while(s'9'){if(s=='-... 阅读全文
posted @ 2016-09-17 22:25 一入OI深似海 阅读(292) 评论(0) 推荐(0) 编辑
摘要: /* 开始暴力+滚动数组70 后来发现不用循环很多 找p的倍数 找%p意义下为0的就好了 */ #include #include #include #define maxn 3010 #define mod 1000000009 using namespace std; int n,p,a[maxn],f[2][maxn],sum,ans; int main() { scanf("%... 阅读全文
posted @ 2016-09-17 22:22 一入OI深似海 阅读(218) 评论(0) 推荐(0) 编辑
摘要: /*我尼玛 又一个min打成max 看了半天....*/ #include #include #include #define maxn 200010 #define inf 0x7fffffff using namespace std; int n,m,head[maxn],num,v[maxn],fa[maxn][25],c[maxn]; int mii[maxn][25],mxx[maxn... 阅读全文
posted @ 2016-09-17 08:25 一入OI深似海 阅读(333) 评论(1) 推荐(0) 编辑