diff options
author | Kjetil Ørbekk <kj@orbekk.com> | 2019-12-16 10:23:08 -0500 |
---|---|---|
committer | Kjetil Ørbekk <kj@orbekk.com> | 2019-12-16 10:23:08 -0500 |
commit | ba12bc5b77bc4578cdabcce41fffcdc3109c1572 (patch) | |
tree | 348c0f95bdea45d067cdb22a0a4f70d2fc052761 /advent/src | |
parent | f7c0291770009bfd8d171727ff6f03b59aa8c644 (diff) |
advent
Diffstat (limited to 'advent/src')
-rw-r--r-- | advent/src/12_2.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advent/src/12_2.rs b/advent/src/12_2.rs index 403e2e4..c6e34bd 100644 --- a/advent/src/12_2.rs +++ b/advent/src/12_2.rs @@ -89,7 +89,7 @@ fn main() { println!("cycles:\n{:?}\n{:?}\n{:?}", cx, cy, cz); let start = cmp::max(cx.start, cmp::max(cy.start, cz.start)); let length = integer::lcm(cx.length, integer::lcm(cy.length, cz.length)); - println!("common cycle: start={} length={}", start, length); + println!("common cycle: start={} length={} steps={}", start, length, start+length); } else { println!("failed"); } |