C++ 判断字符串的通配符变位词
#include
int main() { string s1, s2; cin >> s1 >> s2; sort(s1.begin(), s1.end()); sort(s2.begin(), s2.end()); if (s1 == s2) { cout << 'A' << endl; } else { cout << 'N' << endl; } return 0; }
原文地址: https://www.cveoy.top/t/topic/qvpK 著作权归作者所有。请勿转载和采集!