This was almost certainly very good luck
This commit is contained in:
parent
362d843997
commit
e6521b17e5
1 changed files with 3 additions and 0 deletions
|
|
@ -259,6 +259,9 @@ impl Graph {
|
||||||
fn max_flow_with_an_elephriend(&self, total_minutes: usize) -> Flow {
|
fn max_flow_with_an_elephriend(&self, total_minutes: usize) -> Flow {
|
||||||
let best = self.max_flow(total_minutes);
|
let best = self.max_flow(total_minutes);
|
||||||
|
|
||||||
|
// The prompt suggests that I might be able to do better by myself. So, a wild guess:
|
||||||
|
//
|
||||||
|
// What if the elephant just opens up the best valves I wouldn't have time for?
|
||||||
let elegraph = {
|
let elegraph = {
|
||||||
let mut g = self.clone();
|
let mut g = self.clone();
|
||||||
for action in best.path.0 {
|
for action in best.path.0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue