#20451: C++ 的 sort + next_permutation + compare 直接開掛


jack621224 (YJLegend)


重點部分

bool cmp(char a, char b){
char la = tolower(a), lb = tolower(b);
if (la != lb) 
return la < lb; 
else 
return a < b;
}