Lang:G++
Edit12345678910111213141516171819202122232425262728293031/*Trie tree construction and functionsAuthor: cxwEmail: cxweieee@126.comReference: hiho1014Link: http://hihocoder.com/problemset/problem/1014Tag: Trie, trie, dictionary tree*/// Trie tree, or dictionary tree#include<iostream>#include<cstring>#include<cstdio>#include<algorithm>using namespace std;int cmp(int a, int b){return a<b;}int a[100010];int b[100010];int main(){int n;while(cin>>n){for(int i = 0; i < n; i++){