Create 843.cpp

This commit is contained in:
Kirigaya Kazuto 2018-07-10 14:52:50 +08:00 committed by GitHub
parent 12c169923e
commit 4181bb0828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
LeetCode-CN/843.cpp Normal file
View File

@ -0,0 +1,15 @@
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]]);
}
};