This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <unordered_map> | |
#include<unordered_set> | |
using namespace std; | |
void read_command(unordered_map<char, pair<int, int>>&, unordered_set<char>&); | |
int configurations(vector<vector<char>>&, int, int, unordered_map<char, pair<int, int>>&, unordered_set<char>&); | |
int main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"task_1.h" | |
int main() | |
{ | |
unordered_map<string, int> inputs; | |
string line; | |
while (getline(cin, line)) | |
{ | |
if (line.empty())break; | |
else | |
{ |