#include <unordered_map> typedef unordered_map<string, int> MPSI; // 递归处理方程式 MPSI dfs(string& str, int& u) {