summaryrefslogtreecommitdiff
path: root/2018
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-12-21 23:08:50 +0100
committertomsmeding <tom.smeding@gmail.com>2018-12-21 23:08:50 +0100
commit7293b9eec77079a35d1e2ef3442fbce95a28c307 (patch)
tree37c4a07d62e1bcb1fdf610e29bbf1d2890b23d29 /2018
parent7dc5aa8bca7699c406c3dacd9e24c26cf74ca510 (diff)
Day 19 part 2
Diffstat (limited to '2018')
-rw-r--r--2018/src/day19.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/2018/src/day19.rs b/2018/src/day19.rs
index b8ded6a..05f0fd4 100644
--- a/2018/src/day19.rs
+++ b/2018/src/day19.rs
@@ -350,7 +350,7 @@ fn divisor_sum(n: i64) -> i64 {
}
fn main_alt() -> (String, String) {
- (divisor_sum(948).to_string(), divisor_sum(10551236).to_string())
+ (divisor_sum(948).to_string(), divisor_sum(10551348).to_string())
}
pub fn main<T: BufRead>(reader: T) -> io::Result<(String, String)> {
@@ -369,8 +369,8 @@ pub fn main<T: BufRead>(reader: T) -> io::Result<(String, String)> {
for instr in &instrs { println!("{}", instr); }
- let part1 = run_program(&instrs, 0);
- // let part2 = run_program(&instrs, 1);
+ // let part1 = run_program(&instrs, 0);
+ let part2 = run_program(&instrs, 1);
// Ok((part1.to_string(), part2.to_string()))
Ok((String::new(), String::new())) */