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:这种算法是错误的,只不过这里数据规模小碰巧对了In Reply To:你的算法真的很好,我改动了一下通过了,下面是代码 Posted by:jiangpeng at 2007-10-23 18:54:56 这种算法是错误的,只不过这里数据规模小碰巧对了 for example 数据是{2,5,6,8},n=15 15=2+5+8 是成立的 但用你这种算法15-8=7 7-6=1 输出的是NO Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator