Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93097 石水生 满足条件的数II C++ Accepted 1 MS 272 KB 244 2024-10-10 11:12:53

Tests(3/3):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int m,k,count=0; cin>>m>>k; if(m%19==0) { while(m) { if(m%10==3) count++; m/=10; } if(count==k) cout<<"YES"; else cout<<"NO"; } else cout<<"NO"; }