HHC 2018 Programming Contests
|
10-05-2018, 12:26 PM
(This post was last modified: 10-05-2018 01:19 PM by Joe Horn.)
Post: #72
|
|||
|
|||
RE: HHC 2018 Programming Contests
(10-05-2018 07:45 AM)Didier Lachieze Wrote: Do you have a list of test dates and results to check? Your results are all correct. Here are some of the inputs & expected outputs that were used to test the contest entries on 30 Sept 2018. All dates below are shown in MM/DD/YYYY format. Input Date --> Next Extrema Date { P E I } 05/18/1975 --> 04/14/2019 { 100 -100 -19 } 05/19/1975 --> 10/01/2018 { -100 -100 19 } 02/12/2007 --> 10/01/2018 { -100 -100 -100 } 10/29/1989 --> 02/03/2019 { -100 -100 -54 } 03/02/1969 --> 03/31/2019 { 100 100 99 } 05/09/1968 --> 10/11/2018 { -100 -100 54 } 01/23/1921 --> 02/03/2019 { -100 -100 0 } 08/07/1921 --> 03/31/2019 { -82 -100 -100 } *** 09/19/1920 --> 11/27/2018 { 100 -90 -100 } *** That's the only input which I've found which your program gets a different result for (after changing "Date" in your program to "2018.0930" of course). EDIT: Oh, now I see why. Your program starts looking for the "next" Maxima Date TODAY. The contest specified "not including today". That's an easy program adjustment. <0|ɸ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)