Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
33040 张淳睿 含k个3的数 C++ Accepted 0 MS 244 KB 382 2023-12-04 21:03:24

Tests(1/1):


#include <iostream> using namespace std; int main() { int m,k,c=0; cin>>m>>k; if(m%19==0) { while(m!=0) { if(m%10==3) c++; m=m/10; } if(c==k) cout<<"YES"<<endl; else cout<<"NO"<<endl; } else cout<<"NO"<<endl; return 0; }


Judgement Protocol: