HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL
|
09-15-2022, 03:27 PM
Post: #41
|
|||
|
|||
RE: HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL
(09-15-2022 01:07 PM)Gerson W. Barbosa Wrote: Here’s a version of your program with the subroutine on the stack, like David Hayden’s above: Thanks, Gerson! Saved me the trouble. |
|||
09-16-2022, 12:19 PM
(This post was last modified: 09-16-2022 12:32 PM by C.Ret.)
Post: #42
|
|||
|
|||
RE: HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL
Hi there,
At the moment, I'm not parting with my SHARP EL-5150 calculator, and so here's what I would have returned to Gene if I had been able to attend this year's meeting in person. [attachment=11116] Of course, I would have been immediately disqualified, it's not even an American machine. Here is the code it would have contained: I have deliberately added spaces and line breaks to facilitate reading and explanations. [attachment=11115] (09-15-2022 03:01 PM)Werner Wrote:(09-15-2022 02:22 PM)David Hayden Wrote: Has anyone determined if the check for iterations>50 is necessary? In other words, are there any numbers that hit 50 iterations before overflowing 10 or 12 digits?Adding a number to its reverse doubles the number, 'on average' ;-) I am of Werner's opinion, especially since I have not found any integers that would contradict his assumption. So I shortened the previous code which now becomes: [attachment=11114] Finally, here is how the jury could have verified the correct operation of this expression:
Code: ▌ ▐ OFF --> COMP |
|||
09-16-2022, 01:25 PM
Post: #43
|
|||
|
|||
RE: HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL
(09-15-2022 03:01 PM)Werner Wrote:On the other hand, the worst case is a number that starts with 9 and ends with 1, which grows by about 11%. (10/9)^50 is only 194.(09-15-2022 02:22 PM)David Hayden Wrote: Has anyone determined if the check for iterations>50 is necessary? In other words, are there any numbers that hit 50 iterations before overflowing 10 or 12 digits? I ran a C++ program to search for numbers that get 50+ iterations first and it didn't find any in the first few million. Based on the C++ program, I considered removing that check from my program, but decided against it. I figured that the only way I would beat Roger Hill was if he missed one of these edge cases. Dave |
|||
09-24-2022, 09:49 PM
Post: #44
|
|||
|
|||
RE: HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL
My apologies to Valentin Albillo, as I had intended to make sure this was posted a couple of weeks ago.
The HHC Programming challenge is very similar to the 2006 Short & Sweet Math Challenge #14: Cooking Conjectures !, Conjecture 3: rare. This is the link to the thread: SSMC #14 I did not remember this challenge when coming up with the contest problem and found the idea independently, and as it had been 16 years since the SSMC #14, decided to let it run through the indicated period. However, I did NOT intend to delay pointing interested readers to Valentin's earlier challenge for solutions, ideas, etc. Apologies. As to the questions sometimes asked about which machines are eligible, since at the conference we are judging the shortest solution or length x execution time for the "best" routine, we do have to limit which machines are used for submissions. For nearly 40 years, we have had an RPN contest and since the 48SX days an RPL contest. I don't believe HHC has ever had another type of contest. So for the in person contest, that's what we do. Forum members are more than welcome to post whatever solutions using whatever machines they wish here, of course! Comparability with the conference is the reason RPN and RPL are usually listed in the requirements...which do not apply really to the forum participants. So please go to Valentin's SSMC #14 and see what you think vs. what was done here. And thanks to Valentin for the enjoyment these bring. Gene |
|||
10-16-2022, 02:05 PM
(This post was last modified: 10-16-2022 11:07 PM by David Hayden.)
Post: #45
|
|||
|
|||
RE: HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL
Roger Hill, Bill Butler and I have been having an email conversation about the contest. As you might expect, Roger and Bill have been creating amazing solutions. With their permission, I'm posting the email thread here.
Bill Butler on 3 October 2022 Wrote:Hi Roger and Dave, Thanks Bill! We missed you at HHC and hope that you can come next year. Nice catch on the 50 vs. 50. in my listing. I'll update the post in the forum. We had another entry from a new-comer - Jay Peng. I'll try to get his email address so we can share this with him. All the best, Dave Roger Hill on 4 October 2022 Wrote:Hi Bill, Roger Hill on 9 October 2022 Wrote:Hi Bill and Dave, Bill Butler on 13 October 2022 Wrote:Hi Roger and Dave, Roger Hill on 13 October 2022 Wrote:Hi Bill, Dave Hayden on 14 October 2022 Wrote:Roger and Bill, |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)