超时求助!
查看原帖
超时求助!
1627604
CoderMC楼主2025/1/7 17:49
#include<bits/stdc++.h>
using namespace std;
int main(){
    long long n;
    int k,count=0;
    cin>>n>>k;
    while(n){
        if(n%10==3){
            count++;
            n=n/10;
        }
    }
    if(count==k){
        cout<<"YES";
    }
    else cout<<"NO";
    return 0;
    
}
2025/1/7 17:49
加载中...