#include <iostream> #include <string> #include <unordered_set> #include <cctype> bool isPasswordValid(const std::string& password) { // 检查长度 if (password.length() < 8) { return false; } // 检查字符类型 bool hasUpper = false, hasLower = false, ha...