advent-of-code/2015/day-04/part_two.rs
Patrick Auernig 3c57921438 Refactor 2015 days 01 to 10
Split parts into separate files and remove some unused files
2021-12-08 01:05:17 +01:00

19 lines
377 B
Rust

mod common;
use std::env;
use std::fs::read_to_string;
use common::{find_suffix_with_zeroes, Result};
fn main() -> Result<()> {
let path = env::args().skip(1).next().unwrap();
let input = read_to_string(path)?;
let input = input.lines().next().unwrap().to_owned();
let result = find_suffix_with_zeroes(&input, 6);
println!("{}", result);
Ok(())
}