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 |
最强的剪枝事实上当某种石头个数太大的时候,截掉一截即可, 我的处理是: if (x>60) if (x%2) x=61; else x=60; 这样数据范围就很小了,怎么做都能过~ 为什么是60? 因为1~6的最小公倍数是60。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator