存一下代码emmm太久没写题手好生。用了3h左右,第五题没写出来,想复杂了。。。。 class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return int整型 */ int minCnt(string s) { // write code here int cnt = 0; for (auto i : s) { if (i == '1') cnt++; } return cnt - 1; } }; #include <queue> clas...