Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
24706 LeoWang 含k个3的数 C++ 通过 0 MS 252 KB 247 2023-08-16 10:02:14

Tests(1/1):


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


测评信息: