|
|
@ -50,7 +50,12 @@ int main(int argc, char *argv[]) { |
|
|
|
auto days = getAllDays(); |
|
|
|
auto days = getAllDays(); |
|
|
|
std::filesystem::create_directory("input"); |
|
|
|
std::filesystem::create_directory("input"); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 1; i < argc; i++) { |
|
|
|
int i = 1; |
|
|
|
|
|
|
|
if (argc > 1 && std::string(argv[1]) == "T") { |
|
|
|
|
|
|
|
useTestInput = true; |
|
|
|
|
|
|
|
i++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
for (; i < argc; i++) { |
|
|
|
int dayNum = std::stoi(argv[i]); |
|
|
|
int dayNum = std::stoi(argv[i]); |
|
|
|
std::cout << "Running day " << dayNum << std::endl; |
|
|
|
std::cout << "Running day " << dayNum << std::endl; |
|
|
|
Input input = getInput(dayNum, key, useTestInput); |
|
|
|
Input input = getInput(dayNum, key, useTestInput); |
|
|
|