mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 843.cpp
This commit is contained in:
parent
12c169923e
commit
4181bb0828
15
LeetCode-CN/843.cpp
Normal file
15
LeetCode-CN/843.cpp
Normal 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]]);
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user