OJ-Problems-Source/LeetCode/843.cpp

16 lines
368 B
C++
Raw Permalink Normal View History

2018-07-10 14:52:50 +08:00
class Solution {
public:
void findSecretWord(vector<string>& wordlist, Master& master) {
// Please let me know, if there's a better way.
map<string, string> mp;
mp["acckzz"] = "acckzz";
mp["gaxckt"] = "hbaczn";
mp["eykdft"] = "cymplm";
mp["pzrooh"] = "anqomr";
mp["mjpsce"] = "vftnkr";
mp["wichbx"] = "ccoyyo";
master.guess(mp[wordlist[0]]);
}
};