You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
362 B
24 lines
362 B
7 years ago
|
extern crate failure;
|
||
|
|
||
|
use std::io::{self, Read};
|
||
|
|
||
|
use failure::Error;
|
||
|
|
||
|
mod day_01;
|
||
|
|
||
|
fn main() {
|
||
|
if let Err(e) = run() {
|
||
|
eprintln!("{}", e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn run() -> Result<(), Error> {
|
||
|
let mut input = String::new();
|
||
|
io::stdin().read_to_string(&mut input)?;
|
||
|
|
||
|
let solution = day_01::solve(&input)?;
|
||
|
println!("{}", solution);
|
||
|
|
||
|
Ok(())
|
||
|
}
|