Post Reply 
HHC 2016 RPN contest is now live
09-20-2016, 12:21 PM (This post was last modified: 09-20-2016 04:16 PM by Gene.)
Post: #19
RE: HHC 2016 RPN contest is now live
Only one solution was presented at HHC. Namir Shammas gave a solution that works, but has a rather long run time for some inputs.

Since there was only one solution, no winner was declared.

Test inputs were:

Code:
k      n       F(k,n)
4      20     597
7      12     12,306
3      12     66
6      50    126
6      30    47,631
2      15    4
5      44    5
5      20    4,998

Code:

01: STO 01
02: X<>Y
03: DEC X
04: 10
05: X<>Y
06: Y^X
07: STO 00
08: 10
09: *
10: STO 03
11: 0
12: STO 02
13: LBL 00
14: RCL 00
15: X=? 03
16: GTO 01
17: 0
18: RCL 00
19: LBL 02
20: ENTER
22: ENTER
23: 10
24: STO / Z
25: STO / Y
26: X<>Y
27: FP
28: *
29: STO+ Z
30: RDN (ROLL DOWN)
31: IP
32: X NOT EQUAL 0
33: GTO 02
34: RDN 
35: X=? 01
36: INC 02
37: INC 00
38: GTO 00
39: LBL 01
40: RCL 02
41: END
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HHC 2016 RPN contest is now live - Gene - 09-17-2016, 01:36 PM
RE: HHC 2016 RPN contest is now live - Gene - 09-20-2016 12:21 PM



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