| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12310 | 郑奚桐 | K 好数 | C++ | Compile Error | 0 | 0 MS | 0 KB | 253 | 2020-12-31 17:04:20 |
#include<bits/stdc++.h> using namespace std; int n,k,y,m,a; int main(){ cin>>n>>k;y for(int i=1;i<=n;i++){ a=i; while(a!=0){ m=a%10; if(m>k) break; if(a/10==0){ y++; break; } a/=10; } cout<<y; return 0; }