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.
21 lines
312 B
21 lines
312 B
9 years ago
|
use std::io::Error;
|
||
|
|
||
|
pub trait Day {
|
||
|
fn new(String) -> Self;
|
||
|
fn solve(self) -> Result<i32, Error>;
|
||
|
}
|
||
|
|
||
|
pub struct Day01 {
|
||
|
input: String,
|
||
|
}
|
||
|
|
||
|
impl Day for Day01 {
|
||
|
fn new(input: String) -> Day01 {
|
||
|
Day01 { input: input }
|
||
|
}
|
||
|
|
||
|
fn solve(self) -> Result<i32, Error> {
|
||
|
Ok(1)
|
||
|
}
|
||
|
}
|