c++50pts哪里错了
查看原帖
c++50pts哪里错了
1329568
LINYUHENG楼主2024/5/30 19:49

各位大佬,哪里错了c++

#include <bits/stdc++.h>
using namespace std;
string m;
int k,cnt;

int main(){
    cin>>m>>k;
    for(int i=0;i<m.size();i++){
        if(m[i]==3) cnt++;
    }
    if(cnt==k) cout<<"YES";
    else cout<<"NO";
    return 0;
}

debug者有赏

2024/5/30 19:49
加载中...