Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
37837 C++|刘一阳 含k个3的数 C++ 通过 0 MS 256 KB 225 2024-01-23 15:00:21

Tests(1/1):


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


测评信息: