4 solutions

  • 0
    @ 2026-2-6 13:56:32

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

    Information

    ID
    869
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    412
    Accepted
    88
    Uploaded By