delete pics to save space
This commit is contained in:
15
history_source/信息学奥赛一本通/1.4.1.10.cpp
Normal file
15
history_source/信息学奥赛一本通/1.4.1.10.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int ans=0,n,k,x;
|
||||
scanf("%d%d",&n,&k);
|
||||
for(int i=0;i<n;i++)
|
||||
{
|
||||
scanf("%d",&x);
|
||||
if(x==k) ans++;
|
||||
}
|
||||
printf("%d\n",ans);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user