摘要: int read(){ int p,data=0; char ch=0; while ((ch!='-') && ch<'0' || ch>'9') ch=getchar(); if (ch=='-') { p=-1; ch=getchar(); } else p=1; while (ch>='0' 阅读全文
posted @ 2018-03-01 18:40 lmjer 阅读(146) 评论(0) 推荐(0)
摘要: #include<cstdio>#include<cstring>#include<algorithm>using namespace std;struct my{ int u,v,next;};const int maxn=100000+5;int cnt;int nil=1000000000;m 阅读全文
posted @ 2018-03-01 18:40 lmjer 阅读(162) 评论(0) 推荐(0)