Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7985 刘逸杭 满足条件的数II C++ Accepted 0 MS 268 KB 241 2025-05-31 20:34:15

Tests(3/3):


Code:

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