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

关于1006题的疑问

Posted by tiantian1201 at 2011-10-27 17:29:22
1006题中有两个已知条件
1. For each cycle, you will be given the number of days from the beginning of the 【current year】 at which one of its peaks (not necessarily the first) occurs. 
2. You will also be given a date expressed as the number of days from the beginning of the 【current year】.
“【】”中是我想强调的

并且题中指明
“All values are non-negative and at most 【365】, and you may assume that a triple peak will occur 【within 21252】 days of the given date.”

为什么要within 21252?如果input是“365 365 365 1”,结果应该是什么?是不是应该21252+365-1=21616

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