HHC 2014 Programming Contest
|
10-07-2014, 12:26 PM
(This post was last modified: 10-07-2014 12:27 PM by Jeff O..)
Post: #38
|
|||
|
|||
RE: HHC 2014 Programming Contest
(10-06-2014 09:34 PM)Paul Dale Wrote: Interesting program and great use of the 34S features. I kept discovering features that helped. Very early versions had a Leap year determination routine. At one point I wondered if wp34s had a leap year function, that saved a ton of steps. Then discovered the Date arithmetic, which eliminates the need for leap year determination altogether as wp34s knows that the day before 01 March is 29 February in leap years. (I knew it had Prime? all along, I never tried to build a prime checking routine.) (10-06-2014 09:34 PM)Paul Dale Wrote: One immediate step can be saved -- you don't need the final RTN. A second by omitting the initial label, although that might make reruns harder. Never thought to check if END works like RTN, just figured it is the separator for alpha labelled programs. Of course, the manual clearly states “Works like RTN in all other aspects.” So I will accept that reduction, although then it seems like we should count the final END statement, so maybe no reduction. I think the label is needed to make it easy on the judges to run multiple test cases. Thanks again for your comments. Jeff Dave - My mind is going - I can feel it. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)