摘要:
#include #include #include #define INF 0x3f3f3f3f using namespace std; int main() { int n,m,x,y,val,now,map[105][105],dis[105],vis[105]; while(cin>>n>>m) { queueq; if(n==0... 阅读全文
posted @ 2019-05-08 22:14
Leozi
阅读(183)
评论(0)
推荐(0)
摘要:
#include #include #define INF 0x3f3f3f3f using namespace std; int edge[105][105],d[105]; int Dijstra(int st,int n) { int mark[105],minn,minn_num; memset(mark,0,sizeof(mark)); for(int i=1;... 阅读全文
posted @ 2019-05-08 22:14
Leozi
阅读(105)
评论(0)
推荐(0)
摘要:
#include #include #include #include #include using namespace std; char a[100000],b[100000],c[100000]; int x[100000],y[100000],z[100000]; int Muti() { memset(z,0,sizeof(z)); memset(x,0,sizeof... 阅读全文
posted @ 2019-05-08 22:14
Leozi
阅读(304)
评论(0)
推荐(0)
摘要:
#include #include #include #include typedef long long ll; using namespace std; ll sum[500050],n; struct node{ ll lf; ll rg; }a[500050]; ll cmp(node x,node y) { if(x.lf==y.lf) retu... 阅读全文
posted @ 2019-05-08 22:13
Leozi
阅读(243)
评论(0)
推荐(0)
摘要:
#include using namespace std; long long min(long long x1,long long y1,long long z1,long long w1) { long long k1,k2; k1=min(x1,y1); k2=min(z1,w1); return min(k1,k2); } int main() { ... 阅读全文
posted @ 2019-05-08 22:12
Leozi
阅读(167)
评论(0)
推荐(0)
摘要:
#include using namespace std; int par[1005]; int get_par(int x) { return par[x]==x?x:get_par(par[x]); } int main() { int T,n,m,x,y,cont; cin>>T; while(T--) { cin>>n>>m; ... 阅读全文
posted @ 2019-05-08 22:12
Leozi
阅读(114)
评论(0)
推荐(0)
摘要:
#include #include #include using namespace std; typedef long long LL; LL work(LL n) { LL ans = 0; for(int k = 0; k >n) cout #include #include using namespace std; typede... 阅读全文
posted @ 2019-05-08 22:11
Leozi
阅读(705)
评论(0)
推荐(0)
摘要:
#include #include using namespace std; int main() { /*map mp; map::iterator it; mp[2]='L'; mp[1]='A'; mp[3]='Z'; for(it=mp.begin();it!=mp.end();it++) { coutfirstse... 阅读全文
posted @ 2019-05-08 22:08
Leozi
阅读(182)
评论(0)
推荐(0)
摘要:
#include #include #include using namespace std; int main() { int m,n,x; /*vector a; for(int i=0;i>x; a.push_back(x); } for(int i=0;i a[100]; cin>>m>>n; for(int i=0... 阅读全文
posted @ 2019-05-08 22:07
Leozi
阅读(610)
评论(0)
推荐(0)
摘要:
#include #include #include #define N 50005 using namespace std; int maxx[N][20],minn[N][20],a[N]; int ST(int n) { for(int i=1;i>n>>q; for(int i=1;i<=n;i++) { scanf("%d",&a[i]); ... 阅读全文
posted @ 2019-05-08 22:06
Leozi
阅读(199)
评论(0)
推荐(0)