首页 > 中学考试杂题 > 题目详情
英语翻译There is one friendly number and N unfriendly numbers.We
题目内容:
英语翻译
There is one friendly number and N unfriendly numbers.We want to find how many numbers are there which exactly divide the friendly number,but does not divide any of the unfriendly numbers.
Input Format:
The first line of input contains two numbers N and K seperated by spaces.N is the number of unfriendly numbers,K is the friendly number.
The second line of input contains N space separated unfriendly numbers.
Output Format:
Output the answer in a single line.
Constraints:
1
英语翻译
There is one friendly number and N unfriendly numbers.We want to find how many numbers are there which exactly divide the friendly number,but does not divide any of the unfriendly numbers.
Input Format:
The first line of input contains two numbers N and K seperated by spaces.N is the number of unfriendly numbers,K is the friendly number.
The second line of input contains N space separated unfriendly numbers.
Output Format:
Output the answer in a single line.
Constraints:
1
There is one friendly number and N unfriendly numbers.We want to find how many numbers are there which exactly divide the friendly number,but does not divide any of the unfriendly numbers.
Input Format:
The first line of input contains two numbers N and K seperated by spaces.N is the number of unfriendly numbers,K is the friendly number.
The second line of input contains N space separated unfriendly numbers.
Output Format:
Output the answer in a single line.
Constraints:
1
本题链接: