| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 29730 | 惠子铭 | 含k个3的数 | C++ | Accepted | 0 MS | 236 KB | 386 | 2023-11-02 18:59:06 |
#include <iostream> using namespace std; int main() { int m,k,c=0; cin>>m>>k; if(m%19==0) { while(m!=0) { if(m%10==3) c++; m=m/10; } if(c==k) cout<<"YES"<<endl; else cout<<"NO"<<endl; } else cout<<"NO"<<endl; return 0; }