牛客小白月赛31 非对称之美题目链接搞不懂为什么全相同的时候为什么输出0,我一直以为应该输出1如果字符串中有多个不相同的字符,那么最长非对称字符串要么为len,要么为len-1(len为字符串长度)如果整个字符串为回文串,结果为len-1,否则为len。 #include <bits/stdc++.h> using namespace std; #define ll long long string s[110]; int main () { string str; cin>>str; int len = str.length(); map<char,int>...