摘要: #include <cstdio>#include <cstring>#include <iostream>#include <algorithm>typedef long long ll;using namespace std; ll n,m,i,j,k; struct Matrix { ll a 阅读全文
posted @ 2017-01-19 19:35 _Koreyoshi 阅读(114) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std; int exGcd(int a,int b,int &x,int &y) { if(b==0) { x=1; y=0; return a; } int r=exGcd(b,a%b,x,y); int t=x; x 阅读全文
posted @ 2017-01-19 19:33 _Koreyoshi 阅读(157) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio>typedef long long ll;const int maxn=100005;ll d[maxn],id[maxn],s[maxn],k;int n,m,c,x,y;void add(ll*b,int p,ll v){for(;p<=n;p+=p&-p)b[p 阅读全文
posted @ 2017-01-19 19:31 _Koreyoshi 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;const int maxx = 100000 + 10;int Heap[maxx];int main() { int n,num = 0,x; scanf("%d",&n); for(int i=1; i<=n 阅读全文
posted @ 2017-01-19 19:30 _Koreyoshi 阅读(163) 评论(0) 推荐(0) 编辑