From 4b97fea214d18490c80c06a8bc3c33dadf10ebe4 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Sat, 3 Dec 2022 13:21:25 +0100 Subject: [PATCH] day 3 --- d03.cc | 63 +++++++++++ d03_input.txt | 300 +++++++++++++++++++++++++++++++++++++++++++++++++ d03_output.txt | 2 + 3 files changed, 365 insertions(+) create mode 100644 d03.cc create mode 100644 d03_input.txt create mode 100644 d03_output.txt diff --git a/d03.cc b/d03.cc new file mode 100644 index 0000000..df3eaf3 --- /dev/null +++ b/d03.cc @@ -0,0 +1,63 @@ +#include +#include +#include + +using namespace std; + +typedef vector> Input; + +Input parse() +{ + Input items; + for (string line; getline(cin, line);) { + vector bag; + for (unsigned char c : line) { + if (c >= 'a') c = c - 'a' + 1; + else if (c >= 'A') c = c - 'A' + 27; + bag.push_back(c); + } + items.push_back(bag); + } + return items; +} + +template +unordered_set intersect(unordered_set &a, unordered_set &b) +{ + unordered_set o; + for (auto x : a) if (b.count(x)) o.insert(x); + return o; +} + +unsigned p1(Input &items) +{ + unsigned sum = 0; + for (auto i : items) { + unsigned len = i.size() / 2; + auto one = unordered_set(i.begin(), i.begin() + len); + auto two = unordered_set(i.begin() + len, i.begin() + len * 2); + for (auto x : intersect(one, two)) sum += x; + } + return sum; +} + +unsigned p2(Input &items) +{ + unsigned sum = 0; + for (auto i = items.begin(); i < items.end(); i += 3) { + auto one = unordered_set(i[0].begin(), i[0].end()); + auto two = unordered_set(i[1].begin(), i[1].end()); + auto thr = unordered_set(i[2].begin(), i[2].end()); + auto inter = intersect(one, two); + inter = intersect(inter, thr); + for (auto x : inter) sum += x; + } + return sum; +} + +int main() +{ + auto input = parse(); + cout << p1(input) << endl; + cout << p2(input) << endl; +} diff --git a/d03_input.txt b/d03_input.txt new file mode 100644 index 0000000..f41c84e --- /dev/null +++ b/d03_input.txt @@ -0,0 +1,300 @@ +TZZjzzZLfZbzgzZNNJZjwCVbwMmhwCbBpCMMBCbM +qRQPDqnWFQDtCCBQmQwmGG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sjJTgrMrQQjjTSGSpcGRSmDBNSNJcDSBbRmS +zMrjllgnPrlrnlWrQgTgzgvwqpFwZHChHvPwCtVptCVt +RTjjznsTsnnrzRrmTmrNNCMhwMrCNNCwWhCMGN +DvScpDDVfBPqVcSbDpbfHpqwCWGJCwCJhvFdFFwlMGJWCG +fhHPbhZSpDbDTmsTZTjRzzQz +QbVQvNrrdFcbcMvvdNrcGrrczPnPplPnfnpzwpgmlflRVwwP +jBHLRqZWtLLqWDhBLshBCLsHgpfftfPmmpfpwnwfwJgfpfPn +WCRhsLDsDLBChTLWHChFTTMdGTQGvGQcMQNGMd diff --git a/d03_output.txt b/d03_output.txt new file mode 100644 index 0000000..40516ca --- /dev/null +++ b/d03_output.txt @@ -0,0 +1,2 @@ +8202 +2864