题目链接
https://vjudge.net/contest/411790#problem/C
代码
// 如果使用sort函数,代码会更简洁一些
#include <iostream>
#include <cstring>
#include <string>
#include <queue>
#include <vector>
#include <algorithm>
using namespace std;
struct word
{
char form[1010];
char same[101][1010];
int lenn=0;
};
struct word ww[105];
int main()
{
int wlen = 0;
char s[1010],tmp[1010];
while(1)
{
cin>>s