|
@ -52,8 +52,8 @@ fn main() { |
|
|
}, |
|
|
}, |
|
|
State::In(count) => { |
|
|
State::In(count) => { |
|
|
let mut parts = line.split_whitespace(); |
|
|
let mut parts = line.split_whitespace(); |
|
|
let x: usize = parts.next().unwrap().parse().expect("Failed to read x"); |
|
|
|
|
|
let y: usize = parts.next().unwrap().parse().expect("Failed to read y"); |
|
|
let y: usize = parts.next().unwrap().parse().expect("Failed to read y"); |
|
|
|
|
|
let x: usize = parts.next().unwrap().parse().expect("Failed to read x"); |
|
|
houses.push(House {x, y}); |
|
|
houses.push(House {x, y}); |
|
|
|
|
|
|
|
|
if count == 1 { |
|
|
if count == 1 { |
|
|