上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: #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 阅读(290) 评论(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 阅读(100) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(174) 评论(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 阅读(232) 评论(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 阅读(110) 评论(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 阅读(149) 评论(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 阅读(667) 评论(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 阅读(175) 评论(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 阅读(598) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int a[2005]; int main() { int quicksort(int r,int l); int n,i; while(cin>>n) { if(n==0) { break; } for(i=0;i>... 阅读全文
posted @ 2019-05-08 22:06 Leozi 阅读(113) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页