acgo题库
  • 首页
  • 题库
  • 题单
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 题解

    #include <iostream> #include <cstring> using namespace std; int main() { int t, n, a = 0, m = 0; string s; cin >> t; while (t--) { a = 0; m = 0; cin >> n; cin >> s; for (int i = 0; i < n; ++i) { if (a == 0 && s[i] != 'M' && s[i] != 'm') { if (s[i] == 'e' || s[i] == 'E') { ++a; } else { m = 1; break; } } }

    userId_undefined

    Cr

    秩序白银
    9阅读
    0回复
    0点赞
首页