[문제 링크] : https://www.acmicpc.net/problem/5052#include #include #include using namespace std;int main(){ int T, N; cin >> T; string S; while(T--){ cin >> N; vector V; for(int i=0; i> S; V.push_back(S); } sort(V.begin(), V.end()); bool f = true; for(int i=0; i next.length()) continue; if(cur == next.substr(0, cur.l..