70pst

B2078 含 k 个 3 的数

M15388049303 @ 2024-07-16 10:36:06

#include<bits/stdc++.h>
using namespace std;
int m,k,l;
int main(){
    cin>>m>>k;
    while(m){
        if(m%10==3){
            l++;
        }
        m/=10;
    }
    if(l==k){
        cout<<"YES";
    }else{
        cout<<"NO";
    }
}

by NullPointerExpection @ 2024-07-16 10:38:00

@M15388049303 不开long long见祖宗


by LZYAC @ 2024-07-17 14:30:22

《70pst》 是 70 pts


by Yue_Hao @ 2024-08-02 21:30:46

不开long long,等着听取<100之声一片


|