Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
输入上这样可以吗?while(scanf("%d",&n) != EOF) { scanf(" %d %d %d",&np,&nc,&m); for (i = 0; i < m; i++) { scanf(" (%d,%d)%d",&j,&k,&t); dmax[j][k] = t; } memset (node,0,n+n); for (i = 0; i < np; i++) { scanf(" (%d)%d",&j,&t); node[j][1] = 1; node[j][2] = t; } for (i = 0; i < nc; i++) { scanf(" (%d)%d",&j,&t); node[j][1] = 3; node[j][2] = t; } …… Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator