Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
38995 yuzhengxun 含k个3的数 C++ 通过 0 MS 240 KB 291 2024-01-29 15:49:36

Tests(1/1):


#include<bits/stdc++.h> 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; }


测评信息: