Skip to content

Commit c4ad677

Browse files
committed
Cleaned up the output of the solution answers a bit.
1 parent ef9c499 commit c4ad677

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/day06.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void solve<Day06>(std::istream& ins, std::ostream& outs)
2727
}
2828
}
2929

30-
outs << "Redistributions = " << known.size() << std::endl
31-
<< "Cycles = " << (known.size() - known[banks]) << std::endl;
30+
outs << "Redistributions = " << known.size() << std::endl
31+
<< "Number of cycles = " << (known.size() - known[banks]) << std::endl;
3232
}
3333

src/day08.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void solve<Day08>(std::istream& ins, std::ostream& outs)
3333
[](const auto& a1, const auto& a2) {
3434
return a1.second < a2.second;
3535
});
36-
outs << "Max: [" << max->first << "] = " << max->second << std::endl
37-
<< "Highest overall value = " << total_max << std::endl;
36+
outs << "Maximum register value = " << max->second << std::endl
37+
<< "Highest overall value = " << total_max << std::endl;
3838
}
3939

src/day09.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void solve<Day09>(std::istream& ins, std::ostream& outs)
2323
else { /* ignore everything else */ }
2424
}
2525

26-
outs << "Total Score = " << total_score << std::endl
26+
outs << "Total Score = " << total_score << std::endl
2727
<< "Garbage Count = " << garbage_count << std::endl;
2828
}
2929

src/day13.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ void solve<Day13>(std::istream& ins, std::ostream& outs)
3434
if (depth % ((range * 2) - 2) == 0) { severity += (depth * range); }
3535
}
3636

37-
outs << "Severity of getting caught: " << severity << std::endl;
37+
outs << "Severity of getting caught = " << severity << std::endl;
3838

3939
// Part 2
4040
int wait{0};
4141
while (is_caught(scanners, wait)) { ++wait; }
42-
outs << "Delay for not being caught: " << wait << std::endl;
42+
outs << "Delay for not being caught = " << wait << std::endl;
4343
}
4444

0 commit comments

Comments
 (0)