HHC 2018 Programming Contests
|
10-03-2018, 04:20 AM
(This post was last modified: 10-03-2018 12:29 PM by Gerson W. Barbosa.)
Post: #58
|
|||
|
|||
RE: HHC 2018 Programming Contests
(10-01-2018 06:37 AM)3298 Wrote: For input 22.071960 on stack level 1 my program outputs 30.112018 on stack level 2, and {P:(-100.) E:100. I:(-54.)} on stack level 1. Hey, I am exactly one year younger (less old) than that person. That, except for the year, would have been my first example, but I chose 1.011905 to avoid ambiguities related to the user’s date format. I’ve changed my program to make it shorter and slightly less inelegant. Now 439 bytes, CK = #9AEh, but no nice output. Also, I don’t care about Extrema date falling on today’s date, but this time I haven’t forgotten to preserve the user’s angle mode. Running times don’t depend on the birthday dates, taking about eight tenths of a second. I haven’t tested yours yet, but I guess it should be even faster. (Update: yours take about half a second). Nicely documented, well done! ---------------- PS.: My program fails for 22 Feb 1950. Instead of 30 Jan 2019 it returns 29 Mar 2019. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)