#include<iostream>
#include<string>
using namespace std;
int main()
{
string str;
//int a[10] = {0};
while(getline(cin, str))
{
int a[10] = {0};
for(int i=str.size()-1; i>=0; i--)
{
if(a[str[i] - '0'] == 0)
{
cout << str[i];
a[str[i]-'0'] ++;
}
}
}
}
华为机试(9)提取不重复的整数
最新推荐文章于 2024-07-13 13:11:55 发布