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

原来变量是要赋初值的

Posted by dahai1990 at 2011-02-13 20:04:22 on Problem 1164
开始写成
int ans;
....
cell=..
if(cell>ans)
 ans=cell;
自己用VC++6.0编译的没有错误.可以提交就是WA.然后改成
int ans=0;
....
cell=..
if(cell>ans)
 ans=cell;
就AC了.可能是初值的问题吧.

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