题目:http://codeforces.com/contest/262/problem/A
#include#include #include using namespace std;int main(){ int n,k; cin >> n >> k; int num; int ans=0; char digit[10]; for(int i=0;i > num; int flag=1; sprintf(digit,"%d",num); int len = strlen(digit); for(int j=0;j k) { flag=0; break; } } if(flag==1) ans++; } cout << ans <