上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页
摘要: #include #include #define INF 9999999 //#define INF 0x3f3f3f3 using namespace std; int vis[200],dis[200],Map[200][200]; int dijkstra(int n,int x) ... 阅读全文
posted @ 2014-12-11 17:36 __夜风 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; const int INF=0x3f3f3f3f; int dis[110][110]; int main() { int i,j,k,n,m,p,q,s; while(scanf("%d%d",&... 阅读全文
posted @ 2014-12-11 17:34 __夜风 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int M[101][101]; int main() { int i,j,m,n,a,b,k; int flag; while(cin>>n>>m){ //flag=1; fo... 阅读全文
posted @ 2014-12-11 17:34 __夜风 阅读(75) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int main() { int sum,m,len,t,i,k,s; char a[1001]; while(cin>>t) { sum=0; ... 阅读全文
posted @ 2014-12-11 17:30 __夜风 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; struct money { int s; int v; }; bool cmp(money a,money b) { return a.s>b.s; } int main() { money M[101]... 阅读全文
posted @ 2014-12-11 17:28 __夜风 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; int f[1000]; int digree[1000]; int find(int x) { while(x!=f[x]) x=find(f[x]); ret... 阅读全文
posted @ 2014-12-11 17:27 __夜风 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;int Map[1001][1001],vis[1001][1001];int stx,sty,enx,eny,n,m,flag;int xx,yy,turn,k,i,j;int dx[]={1,0... 阅读全文
posted @ 2014-12-11 15:08 __夜风 阅读(209) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;int M[101][101],flag[101][101];int n,m;int cnt;void pool(int x,int y){ flag[x][y]=1; M[x][y]=cn... 阅读全文
posted @ 2014-12-11 15:05 __夜风 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;int main(){ int n,i; int a[4]={1,2,3,4}; //cin>>n; while(next_permutation(a,a+4)){ for(i=0;iusi... 阅读全文
posted @ 2014-12-11 15:04 __夜风 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;int main(){ int a[51][51],b[51][51],c[51][51],i,j,k,l,m,n; while(cin>>m>>n>>k,m+n+k>0) { for(i=1;i>a[i]... 阅读全文
posted @ 2014-12-11 15:03 __夜风 阅读(95) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页