#include <array> #include <iostream> #include <vector> #include <cstring> using namespace std; int mp[128][128][128]; bool solve(string& s) { int n = s.size(); memset(mp, 0, sizeof mp); if (n < 8) return false; int upper = 0, lower = 0, num = 0, special = 0; for (int i...