Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95993 | 杜春雨 | 满足条件的数II | C++ | Accepted | 1 MS | 272 KB | 303 | 2024-11-02 17:02:07 |
#include<bits/stdc++.h> using namespace std; int main() { int m,y,k,sum=0; cin>>m>>k; if(m%19==0){ while(m!=0){ y=m%10; m/=10; if(y==3){ sum++; } } } if(sum==k) cout<<"YES"; else cout<<"NO"; return 0; }