Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

+1 orz...

Posted by 52sandy at 2013-03-11 16:17:14 on Problem 1014
In Reply To:最强的剪枝 Posted by:yihuikang at 2012-07-26 20:13:21
> 事实上当某种石头个数太大的时候,截掉一截即可,
> 我的处理是:
>     if (x>60)
>        if (x%2) x=61;
>        else     x=60;
> 这样数据范围就很小了,怎么做都能过~
> 为什么是60?
> 因为1~6的最小公倍数是60

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator