Post Reply 
HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL
09-12-2022, 09:01 PM (This post was last modified: 09-12-2022 09:02 PM by Craig Bladow.)
Post: #26
RE: HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL
Here is my entry that won the RPN part of the HHC 2022 programming contest this year. It is 76 bytes long. CLS is the raw file decoder's output for the command that clears the statistics registers. Likewise '#' is not equals.
Code:

LBL "PAL2"
STO 00
.05
STO 01
LBL 01
ISG 01
GTO 04
GTO 08
LBL 04
RCL 00
10
10^X
X<=Y?
GTO 08
X<>Y
XEQ 07
ST+ 00
RCL 00
XEQ 07
RCL 00
X=Y?
GTO 09
GTO 01
LBL 07
CLS
STO 11
LBL 06
10
ST* 12
MOD
ST- 11
ST+ 12
LASTX
ST/ 11
RCL 11
X#0?
GTO 06
RCL 12
RTN
LBL 08
CLST
STOP
LBL 09
RCL 01
INT
X<>Y
END

Try CC41!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL - Craig Bladow - 09-12-2022 09:01 PM



User(s) browsing this thread: 1 Guest(s)