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 |
Re:求助~~~开始TL 后来又WA~~郁闷In Reply To:求助~~~开始TL 后来又WA~~郁闷 Posted by:s2009zy at 2010-05-31 18:32:48 咕~~(╯﹏╰)b 不用求助了我~~~ 发现原来最后一个FOR多写了个等号··· 最后改成下面代码就对了~~~哎··各位同志们细心啊~~我调了两天的代码终于对了~~~~ for( i = 1 ; i < n ; i++ ) { if(max<Right[i+1] + Lift[i]) { max=Right[i+1] + Lift[i]; } } printf("%d\n", max); } return 0; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator