Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71369 sh25_ganzy 含k个3的数 C++ 通过 0 MS 248 KB 418 2025-10-25 13:49:44

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int main(){ long int m; int k,cnt=0,w; cin>>m>>k; bool a=true; if(m%19!=0){ a=false; } while(m!=0){ w=m%10; m/=10; if(w==3){ cnt++; } } if(cnt!=k){ a=false; } if(a==false){ cout<<"NO"; }else{ cout<<"YES"; } return 0; }


测评信息: