#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 2000010; int son[N][26], idx = 0; int cnt[N], pass[N]; void insert_word(string s){ int p = 0; for(int i = 0;i < s.size();i ++ ){ int u = s[i]...