mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
16 lines
368 B
C++
16 lines
368 B
C++
|
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]]);
|
||
|
}
|
||
|
};
|