9SORTED JOIN
The task
P must receive each value from X with its sign removed.
The locked router splits the stream and waits for your ready signal before each new value.
The board
Key idea
ANY reads from whichever branch is ready.
Hints
Each hint goes a step further than the one before. Open them one at a time.
Hint 1Show
The router sends positive values up and everything else down.
Hint 2Show
The lower branch must flip the sign.
Hint 3Show
IN ANY takes from whichever branch has a value. Then OUT P3 tells the router you are ready.
Solution
Reveal the Full SolutionThe complete program for SORTED JOIN. Open it only when you want the answer.
The reference program
The game's own solution. It passes every test and scores exactly par on every benchmark.
c1SC-2 standard
IN P0
OUT P1c2SC-2 standard
IN P0
NEG
OUT P1c3SC-2 standard
IN ANY
OUT P2
OUT P3- CYCLES
- 415
- at par
- ENERGY
- 1292
- at par
- NODES
- 3
- at par
- INSTRUCTIONS
- 8
- at par