#include <iostream>
#include <vector> using namespace std;
int main(){
int n,k,cnt = ;
cin >> n >>k;
for( int i = ; i < n ; ++ i ){
int a;
vector<int> goodNum(k+,);
cin >> a;
while(a){
if(a%<=k) goodNum[a%]++;
a/=;
}
int j = ;
for(j = ; j < k+; ++ j)
if(!goodNum[j]) break;
if(j >= k +) cnt++;
}
cout<<cnt<<endl;
return ;
}
相关文章
- Codeforces Round #257 (Div. 2) A. Jzzhu and Children(简单题)
- Codeforces Round #520 (Div. 2) A. A Prank 好题
- Codeforces Round #455 (Div. 2) A. Generate Login【贪心】
- codeforces水题100道 第十二题 Codeforces Beta Round #91 (Div. 2 Only) A. Lucky Division (brute force)
- Codeforces Round #604 (Div. 2) A. Beautiful String
- Codeforces Round #368 (Div. 2) A. Brain's Photos (水题)
- Codeforces Round #355 (Div. 2) A. Vanya and Fence 水题
- Codeforces Round #290 (Div. 2) A. Fox And Snake 水题
- Codeforces Round #368 (Div. 2) A. Brain's Photos 水题
- Codeforces Round #112 (Div. 2)---A. Supercentral Point