# Robot Instructions

{% embed url="<https://usaco.org/index.php?page=viewproblem2&cpid=1207>" %}

* I completely missed the naive solution to iterate off here because I didn't realize that order didn't matter.&#x20;
  * The solution for the first subtask was simply to build all 2^N sets and answer based on which ones ended up in the right spot.&#x20;
  * The solution for the second subtask was the same as the first, except by dividing into 2 parts, which led to a bunch of other thorny complications.&#x20;
