NtZ←{=˜𝕩 ? 𝕩; 0}¨ # NaN is not equal to itself.
EvalBlueprint←{𝕊 robot_costs:
- max_costs←⌈´˘robot_costs
+ •Show robot_costs
+ •Show max_costs←⌈˝(robot_costs∾[⟨0,0,0,∞⟩]) # Want all the geodes.
Search←{ 𝕊⟨time,stock,robots⟩:
#•Show ⟨time,stock,robots⟩
result←⌈´{
𝕊⟨time,stock,robots⟩:
3⊑stock+robots×time # If not, return number of geodes we can get in time.
}
- •Show robot_costs
•Show Search ⟨24,⟨0,0,0,0⟩,⟨1,0,0,0⟩⟩
}