Post Reply 
Clock Hands Challenge
03-07-2019, 02:19 PM
Post: #16
RE: Clock Hands Challenge
A more compact version with Joe's suggestion:

Code:
INPUT H
H=MOD(H,12)
F=12/11
IF H<6 THEN D=-6 ELSE D=6 
PRINT DMS(H*F)
PRINT DMS((H-D)*F+D)


The very limited FX-180P makes it somewhat complicated, but it's possible:

Code:
P1:
 01  Kin1
 02  Kin2
 03  1
 04  2
 05  /
 06  1
 07  1
 08  *
 09  Kin3
 10  Kout1
 11  =
 12  °′″←
 13  HLT
 14  6
 15  Kin-2
 16  Kout2

P2:
 01  +/-
 02  x>0
 03  Kin/2
 04  6
 05  Kin*2
 06  Kout2
 07  Kin+1
 08  Kout3
 09  Kin*1
 10  Kout2
 11  Kin-1
 12  Kout1
 13  °′″←

29 steps

Usage example: 7 P1 RUN P2

The 180° result for 6 o'clock is excluded and gives an error.

Calculator Benchmark
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Clock Hands Challenge - RMollov - 03-02-2019, 02:47 AM
RE: Clock Hands Challenge - Dieter - 03-05-2019, 07:17 PM
RE: Clock Hands Challenge - rprosperi - 03-05-2019, 11:29 PM
RE: Clock Hands Challenge - rprosperi - 03-06-2019, 02:43 AM
RE: Clock Hands Challenge - RMollov - 03-06-2019, 07:50 AM
RE: Clock Hands Challenge - ijabbott - 03-06-2019, 05:57 PM
RE: Clock Hands Challenge - Thomas Okken - 03-06-2019, 06:40 PM
RE: Clock Hands Challenge - ijabbott - 03-05-2019, 10:16 PM
RE: Clock Hands Challenge - Thomas Klemm - 03-05-2019, 10:52 PM
RE: Clock Hands Challenge - Thomas Klemm - 03-06-2019, 07:28 PM
RE: Clock Hands Challenge - RMollov - 03-07-2019, 07:21 AM
RE: Clock Hands Challenge - xerxes - 03-06-2019, 10:03 PM
RE: Clock Hands Challenge - Joe Horn - 03-06-2019, 11:55 PM
RE: Clock Hands Challenge - xerxes - 03-07-2019 02:19 PM
RE: Clock Hands Challenge - RMollov - 03-08-2019, 03:30 AM



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