0分,求指点(T209119)
查看原帖
0分,求指点(T209119)
1116605
Zhc13909022402楼主2024/6/26 10:04
#include <bits/stdc++.h>
using namespace std;
string str[5110],s;
int k=0;
int main()
{
	while(cin>>s)
	{
		str[k]=s;
		k++;	
	}
	sort(str,str+k);
    cout<<str[0]<<endl;
	for(int i=0;i<=k;i++)
	{
		if(str[i]!=str[i+1])cout<<str[i]<<endl;
	}
	return 0;
}
2024/6/26 10:04
加载中...