We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy the idea used in the BQN program, which uses the upper bounds of robots.
introduces the upper bounds of robots as the BQN version
The following change is a degression.
diff --git a/bqn/2022/day19.bqn b/bqn/2022/day19.bqn index 033c888..cfd2262 100755 --- a/bqn/2022/day19.bqn +++ b/bqn/2022/day19.bqn @@ -15,13 +15,12 @@ Solve ⇐ { part 𝕊 line: 𝕊 ⟨⟩: best; 𝕊 to_visit: 𝕊 ⟨⟩ { time‿resources‿robots 𝕊 next: - { 𝕊 i: + next { i 𝕊 next: upto< t ← time- w ← 1+⌈⌈´(i⊏masks)/robots÷˜(n ← i⊏bp)(0⊸⌈-)resources ? - { ¬∨´(∧´𝕩⊸≤)¨next ? next ⟨𝕩⟩⊸∾ ↩ ;@ } t∾(n-˜resources+w×robots)∾((1⊸+)⌾(i⊸⊑)robots) + { ¬∨´(∧´𝕩⊸≤)¨next ? ⟨𝕩⟩∾next ; next } t∾(n-˜resources+w×robots)∾((1⊸+)⌾(i⊸⊑)robots) ; - best ((¯1⊑resources)+(time-upto)ׯ1⊑robots)⊸⌈ ↩ - }¨{robots<○(𝕩⊸⊑)limits }¨⊸/↕4 - next + best ((¯1⊑resources)+(time-upto)ׯ1⊑robots)⊸⌈ ↩, next + }´{robots<○(𝕩⊸⊑)limits }¨⊸/↕4 }´{⟨⊑𝕩,4↑1↓𝕩,5↓𝕩⟩}¨to_visit } (•Fmt n) lib.Debug Expand ⟨⟨0⟩∾⟨0,0,0,0⟩∾⟨1,0,0,0⟩⟩ # ⟨time,resources,robots⟩
The text was updated successfully, but these errors were encountered:
44c0d12
shnarazk
No branches or pull requests
Rust side
Copy the idea used in the BQN program, which uses the upper bounds of robots.
records
introduces the upper bounds of robots as the BQN version
BQN side
The following change is a degression.
The text was updated successfully, but these errors were encountered: