题解 | #字符集合#22行解决
字符集合
http://www.nowcoder.com/practice/784efd40ed8e465a84821c8f3970b7b5
#include <iostream>
using namespace std;
int main ()
{
string s;
while(cin>>s)
{
int arr[200]={0};
for (int i=0;i<s.size();i++)
{
int index=s[i]-'A';
if (arr[index]==0)
{
arr[index]++;
cout<<s[i];
}
}
cout<<endl;
}
}