Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:为什么用memset就wa了??

Posted by lijian430421 at 2012-03-24 10:00:12 on Problem 1125
In Reply To:为什么用memset就wa了?? Posted by:verywater at 2010-07-28 09:44:37
> 我程序里用了
> for(i=1;i<=n;i++)
> {
>     for(j=1;j<=n;j++)
>         g[i][j]=inf;
> }初始化,就ac了。
> 但改为memset(g ,inf ,sizeof(g))就wa,为什么??
memset是用来设内存块的ASCII字符码的,设成INF就是负数了.

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator