安全问答

安全问答是一个知识全球问答,包含丰富的问答知识

首页 常规 游戏 娱乐 科技 程序员

C++ 判断字符串的通配符变位词

  • 日期: 2028-10-03
  • 标签: 常规

#include #include using namespace std;

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; }

C++ 判断字符串的通配符变位词

原文地址: https://www.cveoy.top/t/topic/qvpK 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录

  • 上一篇: C++程序:求三个整数除以相同数的最小余数
  • 下一篇: 医学生职业价值观:以患者为中心,追求卓越

© 2019 • 2025 - 安全问答 站长邮箱:wxgpt@qq.com    ICP备案/许可证号:豫ICP备2024104334号-2