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 |
始终和样例不一样可以看看是不是这个问题你们的输出可能是: 1 2 2 -1 如果是这个输出说明你们没有注意到取模的问题,所以最后的答案应该为 (ans[i][j]+mod)%mod,这样就跟样例一样了,但是数据很水,所以没这样写也能A。。。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator