华为OJ】【009-提取不重复的整数】
题目链接:
https://blog.csdn.net/DERRANTCM/article/details/51315205
C++实现:
void main()
{
int n1,n2,n3,n4;
string str1,strOut;
cin >> str1;
vector<char> chList;
for (int i=str1.size()-1;i>=0;i--)
{
char ch = str1.at(i);
if (strOut.find(ch) == string::npos)
strOut.push_back(ch);
}
cout << strOut << endl;
system("pause");
}