|
|
@ -28,8 +28,8 @@ Result Day06::Task2() { |
|
|
|
vector<Day06::Record> Day06::parseRecords() const { |
|
|
|
vector<Day06::Record> Day06::parseRecords() const { |
|
|
|
vector<Record> records; |
|
|
|
vector<Record> records; |
|
|
|
|
|
|
|
|
|
|
|
vector<uint64> time = parseInts(input[0].substr(5)); |
|
|
|
vector<uint64> time = parseUInts(input[0].substr(5)); |
|
|
|
vector<uint64> distance = parseInts(input[1].substr(10)); |
|
|
|
vector<uint64> distance = parseUInts(input[1].substr(10)); |
|
|
|
|
|
|
|
|
|
|
|
for (size_t i = 0; i < time.size(); i++) |
|
|
|
for (size_t i = 0; i < time.size(); i++) |
|
|
|
records.emplace_back(time[i], distance[i]); |
|
|
|
records.emplace_back(time[i], distance[i]); |
|
|
|