Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
8611 | 汤依宁 | 含k个3的数 | C++ | Accepted | 100 | 1 MS | 264 KB | 290 | 2025-03-31 20:24:48 |
#include<bits/stdc++.h> using namespace std; int main() { int m,k,i,a=0; cin>>m>>k; if(m/100000==3) { a++; } if(m%10==3) { a++; } for(i=10; i<=10000; i*=10) { if(m/i%10==3) { a++; } } if(a==k && m%19==0) { cout<<"YES"; } else { cout<<"NO"; } }