Anonymous user
Railway circuit: Difference between revisions
Trying to add a new task
(Trying to create a draft task) |
(Trying to add a new task) |
||
Line 1:
{{draft task}}
'''Railway circuit'''
Given n sections of curve tracks, each one being an arc of 30° of radius R, the goal is to build and count all possible different railway circuits.
'''Constraints''' :
'''Illustrations''' : http://www.echolalie.org/echolisp/duplo.html
'''Task
Write a function which counts and displays all possible circuits Cn for n = 12, 16 , 20. Extra credit for n = 24, 28, ... 48 (no display, only counts). A circuit Cn will be displayed as a list, or sequence of n Right=1/Left=-1 turns.
Example
C12 = (1,1,1,1,1,1,1,1,1,1,1,1) or C12 = (-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1)
'''Straight tracks (extra-extra credit)'''
|