自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

转载 最短线性递推式 BM算法板子

#include<bits/stdc++.h>using namespace std;typedef long long ll;#define rep(i,a,n) for (int i=a;i<n;i++)#define per(i,a,n) for (int i=n-1;i>=a;i--)#define pb push_back#define m...

2019-07-21 12:12:43 275

原创 (CC的凸包)卢卡斯定理+数位dp

CC想知道所有满足(0&lt;=i&lt;=n)(0&lt;=k&lt;=m)且不能被3整除的组合数的个数模998244353的结果。即计算#include&lt;bits/stdc++.h&gt;#define ll long longusing namespace std;ll dp[100][2][2];int num1[100],num2[100];bool visit...

2019-03-14 23:11:02 264

原创 手速帝CZK

给出数组a(1-N)。输入x和y;求;有多组询问。#include&lt;bits/stdc++.h&gt;using namespace std;#define ll long long #define maxn 300000ll a[maxn*2+10];ll res[maxn*2+10];ll ans[maxn+10];struct cc{ int x,y,id;...

2018-10-22 14:10:03 259

原创 莫比乌斯函数之和

#include &lt;cstdio&gt;#include &lt;map&gt;#include &lt;iostream&gt;#define N 20000000using namespace std;long long a,b,n;int mu[N+10],pri[1300010],top;bool mark[N+10];map&lt;long long,long l...

2018-10-22 13:57:28 264

转载 树链剖分(点权)

#include&lt;bits/stdc++.h&gt;#define MAX 123466#define ll long longusing namespace std;struct Front_Link_Star{ int next,to;}edge[MAX&lt;&lt;1];ll Ma,Mi;ll tree[MAX &lt;&lt; 2],lazy[MAX &l...

2018-10-22 13:54:57 197

转载 树链剖分(边权)

#include&lt;bits/stdc++.h&gt;#define MAX 123466#define ll long longusing namespace std;struct Front_Link_Star{ int next,to;}edge[MAX&lt;&lt;1];ll Ma,Mi;ll tree[MAX &lt;&lt; 2],lazy[MAX &l...

2018-10-22 13:49:46 379

原创 欧拉函数之和

#include&lt;bits/stdc++.h&gt; using namespace std;#define ll long long const int maxs = 5000000;bool vis[maxs+10];int prime[maxs+10];ll phi[maxs+10];const ll mod=1e9+7;const ll inv=500000004;...

2018-10-22 13:33:43 434

转载 中国剩余定理(不互质)

#include&lt;iostream&gt;#include&lt;cstdio&gt;#include&lt;climits&gt;#include&lt;cstring&gt;#include&lt;algorithm&gt;using namespace std;#define LL long longconst int maxn=15;int n;LL exgcd(...

2018-10-22 13:31:07 264

转载 中国剩余定理

#include&lt;iostream&gt;#include&lt;cstdio&gt;#include&lt;climits&gt;#include&lt;cstring&gt;#include&lt;algorithm&gt;using namespace std;int n;__int128 m[15],a[15],lcm;__int128 exgcd(__int128...

2018-10-22 13:28:45 169

原创 网络最大流之dicnic

#include&lt;iostream&gt;#include&lt;cstring&gt;#include&lt;queue&gt;#define ll long long using namespace std;#define maxn 500int Depth[maxn + 5], Head[maxn + 5], Next[maxn + 5], V[maxn + 5], W[...

2018-10-22 13:23:28 318

原创 等比求和

You are given two integers aa and bb. Moreover, you are given a sequence s0,s1,…,sns0,s1,…,sn. All values in ss are integers 11 or −1−1. It's known that sequence is kk-periodic and kk divides n+1n+1. ...

2018-04-18 11:35:14 874

原创 POj-2624

Given are the (x, y) coordinates of the endpoints of two adjacent sides of a parallelogram. Find the(x, y) coordinates of the fourth point.InputEach line of input contains eight floating point num

2018-01-28 20:56:03 265

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除