Gaoliangyi @ 2023-04-13 19:59:05
#include<math.h>
#include<string.h>
#include<iostream>
#include<cmath>
#include<iomanip>
#include<string>
#include<stdio.h>
#include<algorithm>
#include<queue>
#include<list>
#include<map>
#include<cstring>
#include<cstdio>
#include<cstring>
#include<math.h>
#include<ctime>
#include<vector>
#define ll long long int
#define pi 3.141592653589794
using namespace std;
bool flag[10000];
int main(void)
{
string x;
cin>>x;
for(int i=0;i<x.size();i++)
{
char c=x[i];
for(int j=i+1;j<x.size();j++)
if(x[j]==c)
flag[i]=1;
}
for(int i=0;i<x.size();i++)
if(!flag[i])
{
printf("%c",x[i]);
return 0;
}
system("pause");
return 0;
}
by InversionShadow @ 2023-04-13 20:06:52
没判断 no
吧
by Gaoliangyi @ 2023-04-13 21:19:17
@ydq1101 问题不在这,谢谢指正