30求解!!!必关!!!
查看原帖
30求解!!!必关!!!
1635974
a15667495696楼主2025/6/14 00:50
#include <bits/stdc++.h>
using namespace std;
//fixed << setprecision()
string s;
int main(){
	ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	cin >> s;
	for (int i = 0; i < s.size(); i++)
	{
		char t = s[i];
		int n = 0;
		for (int j = i; j < s.size(); j++)
		{
			if (s[i] == t)
			{
				n++;
				break;
			}
		}
		if (n == 0)
		{
			cout << s[i];
			return 0;
		}
	}
	cout << "no";
	return 0;
}

2025/6/14 00:50
加载中...