2023 RPN HHC Programming Contest
|
10-26-2023, 08:07 PM
Post: #66
|
|||
|
|||
RE: 2023 RPN HHC Programming Contest
(10-23-2023 06:51 PM)David Hayden Wrote: Here's my 3rd place entry at 25 bytes. Thank you for posting your code. It’s always interesting to see the various approaches to the problem. My first attempt was also 25-byte and 17-step long, based on an easy to find approximation, which was subsequently reduced to the 24-byte 16-step one I first mentioned. I remember having used both ∑+ and ∑- in a past contest, when it was already over, I think. Trying these at home with lots of free time is quite a different thing than solving them at the conference while participating in various activities, though. Just for the record, before I throw away my notes, I will leave below my first two attempts. Also, I tried a small variation on Gene’s challenge. Instead of placing 71 and 41 on the stack, I thought of displaying just a single constant, 7141. I imagined it could be done using fewer steps, but I didn’t find anything shorter than 13 steps on the 41C (or 18 bytes and 12 steps on the HP-42S, by loosening the rules to allow a 42S-specific feature, but not ATOX). Best regards, Gerson. —— Code:
Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)