Skip to content

Commit

Permalink
Update submission
Browse files Browse the repository at this point in the history
  • Loading branch information
LHolten committed Jun 7, 2021
1 parent 68523b5 commit 3e9bfe5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions submission/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ use std::io::{stdin, stdout};

use cluster_lib::{
disk::{load, write_solution},
graph::Graph,
search::Solver,
};

extern crate cluster_lib;

fn main() {
let mut graph = load(stdin()).unwrap();
let mut best = Graph::new(0);
graph.search_components(&mut best);
write_solution(&graph, &mut best, stdout()).unwrap();
let graph = load(stdin()).unwrap();
let mut solution = Solver::new(graph);
solution.search_components();
write_solution(&solution.graph, &mut solution.best, stdout()).unwrap();
}

0 comments on commit 3e9bfe5

Please sign in to comment.