HHC 2017 programming contest revisited
|
11-30-2018, 12:45 AM
(This post was last modified: 11-30-2018 03:28 AM by Don Shepherd.)
Post: #1
|
|||
|
|||
HHC 2017 programming contest revisited
Recall the programming contest for last year's HHC-2017 conference regarding finding "happy" and "unhappy" numbers. I recently acquired a Sharp PC-1211 Pocket Computer (vintage 1980) which runs BASIC. I decided to write a happy number finder for it. Then I decided to write an equivalent RPN routine for my 12c (vintage 2001, not the much faster 12c+). Then I ran several tests with the machines side-by-side so I could compare the speeds. Amazingly enough, each machine took EXACTLY the same amount of time when determining whether a number was happy or unhappy. So BASIC vintage 1980 was equivalent to RPN vintage 2001. Very interesting.
Here is the code. Code:
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HHC 2017 programming contest revisited - Don Shepherd - 11-30-2018 12:45 AM
RE: HHC 2017 programming contest revisited - Gene - 11-30-2018, 12:48 AM
RE: HHC 2017 programming contest revisited - Gamo - 11-30-2018, 01:59 AM
RE: HHC 2017 programming contest revisited - Don Shepherd - 11-30-2018, 02:37 AM
RE: HHC 2017 programming contest revisited - Gerson W. Barbosa - 11-30-2018, 04:30 PM
|
User(s) browsing this thread: 1 Guest(s)