| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12394 | 桑迪 | K 好数 | C++ | Accepted | 100 | 6 MS | 252 KB | 260 | 2021-01-03 09:53:36 |
#include<bits/stdc++.h> using namespace std; int n,k,s=0,m,a; int main(){ cin>>n>>k; for(int i=1;i<=n;i++){ a=i; while(a!=0){ m=a%10; if(m>k) break; if(a/10==0){ s++; break; } a/=10; } } cout<<s; return 0; }