刽子手游戏(Hangman Judge)
题面:![英文题面](https://i-blog.csdnimg.cn/blog_migrate/45c5b77d570cd61c2c50cdea341b8b11.png)
int solve(void) {
cin >> n; if (n == -1) return 0;
string str1, str2; cin >> str1 >> str2;
s.clear(); w.clear(); // 清空set
cout << "Round " << n << endl;
// 将谜语中的字符存入s中
for (int i = 0; i < str1.length(); ++i) s.insert(str1[i]);
for (int i = 0; i < str2.length(); ++i) {
// 在w中存入没有找到的字符
if (str1.find(str2[i]) == str1.npos) w.insert(str2[i]);
else {