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 |
要及时返回 到最后一层 不论能不能 更新ans 都要 return 别跟我一样 .... 傻乎乎的 往下搜应该是这样的 if (depth == 0) { if (leftv == 0 && nows < ans) ans = nows; return; } 而不是 这样的 if (depth == 0 && leftv == 0 && nows < ans)) { ans = nows; return; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator