-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINTEST
More file actions
22 lines (21 loc) · 672 Bytes
/
INTEST
File metadata and controls
22 lines (21 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.io.*;
import java.util.*;
class INTEST {
public static void main(String[] args)throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int count = 0;
int n = Integer.parseInt(st.nextToken());
int k = Integer.parseInt(st.nextToken());
if(k<=Math.pow(10,7))
{
for(int i=1;i<=n;i++) {
int x = Integer.parseInt(br.readLine());
if(x%k==0&&x<=Math.pow(10,9)) {
count++;
}
}
}
System.out.print(count);
}
}