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 |
为什么用memset就wa了??我程序里用了 for(i=1;i<=n;i++) { for(j=1;j<=n;j++) g[i][j]=inf; }初始化,就ac了。 但改为memset(g ,inf ,sizeof(g))就wa,为什么?? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator