summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 9b0ea444b2d02087600cc76811a1f6482261df0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#![feature(get_many_mut)]
#![feature(iterator_try_collect)]
use std::fs;

mod day1;
mod day2;
mod day3;
mod day4;
mod day5;
mod day6;
mod day7;
mod day8;
mod day9;
mod day10;
mod day11;
mod day12;
mod day13;
mod day14;
mod day15;

fn main() {
    day1::run(fs::read_to_string("input/day1.txt").expect("Failed to read input file!"));
    day2::run(fs::read_to_string("input/day2.txt").expect("Failed to read input file!"));
    day3::run(fs::read_to_string("input/day3.txt").expect("Failed to read input file!"));
    day4::run(fs::read_to_string("input/day4.txt").expect("Failed to read input file!"));
    day5::run(fs::read_to_string("input/day5.txt").expect("Failed to read input file!"));
    day6::run(fs::read_to_string("input/day6.txt").expect("Failed to read input file!"));
    day7::run(fs::read_to_string("input/day7.txt").expect("Failed to read input file!"));
    day8::run(fs::read_to_string("input/day8.txt").expect("Failed to read input file!"));
    day9::run(fs::read_to_string("input/day9.txt").expect("Failed to read input file!"));
    day10::run(fs::read_to_string("input/day10.txt").expect("Failed to read input file!"));
    day11::run(fs::read_to_string("input/day11.txt").expect("Failed to read input file!"));
    day12::run(fs::read_to_string("input/day12.txt").expect("Failed to read input file!"));
    day13::run(fs::read_to_string("input/day13.txt").expect("Failed to read input file!"));
    day14::run(fs::read_to_string("input/day14.txt").expect("Failed to read input file!"));
    day15::run(fs::read_to_string("input/day15.txt").expect("Failed to read input file!"));
}