HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL
|
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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)