摘要:
#include#include#include#include#include#includeusing namespace std;int main(){ int in[1024],i,n,t,c; mapm; string s1,s2; while(~s... 阅读全文
摘要:
#include#include#include#includeusing namespace std;int mp[120][120],in[120];int main(){ int n,m,i,cnt,t,u,v; while(~scanf("%d%d",&n,&m)... 阅读全文
摘要:
#include#include#includeusing namespace std;int mp[1024][1024],in[1024],out[1024];int main(){ int n,m,i,j,u,v,cnt,t; while(~scanf("%d%d"... 阅读全文
摘要:
#include#include#includeusing namespace std;struct node{ int l,r; long long sum,c;}t[400000+5];void build(int root,int l,int r){ t[ro... 阅读全文
摘要:
#include#include#includeusing namespace std;const int N=200000;const int inf=0xffffff0;int maxv,minv;struct node{ int l,r; int minv,maxv... 阅读全文
摘要:
#include#includeconst int N=100000+5;const int m=100000007;int n,c[N];int lowbit(int x){ return x&(-x);}void add(int x){ while(x0) { ... 阅读全文
摘要:
#include#include#includeusing namespace std;int main(){ int a[10], ans, i; while (~scanf("%d", &a[1])) { f... 阅读全文
摘要:
#include#include#includeusing namespace std;const int inf=10) { for(j=200000;j>=s[i];j--) if(dp[j... 阅读全文
摘要:
#include#include#includeusing namespace std;int n,c[20000+5],d[20000+5],a[20000+5],p[100000+5];int sum(int x){ int ret=0; while(x>0) ... 阅读全文
摘要:
#include#include#includeusing namespace std;int c[1048][1048],n;int lowbit[1048];void add(int x,int y,int d){ int i,j; for(i=x;i0;i-=low... 阅读全文